public class WildflyTransactionClientTxBridgeIntegrationHandler extends Object implements Handler<MessageContext>
Handler integrating the handle message event with WildFly Transaction Client (WFTC) SPI.
This handler manages the outbound processing where it has to be processed
before the OptionalJaxWSTxInboundBridgeHandler.
Check the handler enlistment at XTSHandlerDeploymentProcessor.updateXTSEndpoint(String, EndpointMetaData, List, DeploymentUnit).
NOTE: the order of the Jakarta XML Web Services handlers are defined as:
For outbound messages handler processing starts with the first handler in the chain
and proceeds in the same order as the handler chain.
For inbound messages the order of processing is reversed.
This handler works on outbound side. The inbound side is handled by WS integration class:
AbstractInvocationHandler.
There is the place where WFTC imports the Narayana transaction for the incoming WS message.
The outbound filter is useful for suspending the WFTC wrapper transaction. Otherwise only the underlaying Narayana transaction is suspended
(Narayana XTS txbridge inbound filter does so).
Then when the call leaves EJB there is invoked handler TransactionRollbackSetupAction verifying existence of the transactions.
If the the WFTC transaction is not suspended then the setup action rolls-back it which leads to an errors in the server log.
| Constructor and Description |
|---|
WildflyTransactionClientTxBridgeIntegrationHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
close(MessageContext context) |
boolean |
handleFault(MessageContext context) |
boolean |
handleMessage(MessageContext messageContext) |
public WildflyTransactionClientTxBridgeIntegrationHandler()
public boolean handleMessage(MessageContext messageContext)
handleMessage in interface Handler<MessageContext>public boolean handleFault(MessageContext context)
handleFault in interface Handler<MessageContext>public void close(MessageContext context)
close in interface Handler<MessageContext>Copyright © 2021 JBoss by Red Hat. All rights reserved.