Package com.arjuna.mw.wst11.service
Class JaxWSSubordinateHeaderContextProcessor
java.lang.Object
com.arjuna.mw.wst11.service.JaxWSHeaderContextProcessor
com.arjuna.mw.wst11.service.JaxWSSubordinateHeaderContextProcessor
- All Implemented Interfaces:
jakarta.xml.ws.handler.Handler<jakarta.xml.ws.handler.soap.SOAPMessageContext>
,jakarta.xml.ws.handler.soap.SOAPHandler<jakarta.xml.ws.handler.soap.SOAPMessageContext>
specialised version which creates and interposes a subordinate AT transaction when
it finds an incoming AT context in the message headers
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
handleInbound
(jakarta.xml.ws.handler.soap.SOAPMessageContext msgContext) Process the tx context header that is attached to the received message.protected boolean
handleInboundMessage
(jakarta.xml.soap.SOAPMessage soapMessage) Handle the request.protected boolean
handleInboundMessage
(jakarta.xml.soap.SOAPMessage soapMessage, boolean installSubordinateTx) Handle the request.protected void
Suspend the current transaction.Methods inherited from class com.arjuna.mw.wst11.service.JaxWSHeaderContextProcessor
close, getHeaders, handleFault, handleMessage, handleOutbound, setHeaders
-
Constructor Details
-
JaxWSSubordinateHeaderContextProcessor
public JaxWSSubordinateHeaderContextProcessor()
-
-
Method Details
-
handleInbound
protected boolean handleInbound(jakarta.xml.ws.handler.soap.SOAPMessageContext msgContext) Process the tx context header that is attached to the received message.- Overrides:
handleInbound
in classJaxWSHeaderContextProcessor
- Parameters:
msgContext
-- Returns:
- true
-
handleInboundMessage
protected boolean handleInboundMessage(jakarta.xml.soap.SOAPMessage soapMessage) Handle the request.- Parameters:
soapMessage
- The current message context.
-
handleInboundMessage
protected boolean handleInboundMessage(jakarta.xml.soap.SOAPMessage soapMessage, boolean installSubordinateTx) Handle the request.- Parameters:
soapMessage
- The current message context.installSubordinateTx
- true if a subordinate transaction should be interposed and false if the handler should just resume the incoming transaction. currently only works for AT transactions but will eventually be extended to work for BA transactions too.
-
suspendTransaction
protected void suspendTransaction()Suspend the current transaction.
-