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>

public class JaxWSSubordinateHeaderContextProcessor extends JaxWSHeaderContextProcessor
specialised version which creates and interposes a subordinate AT transaction when it finds an incoming AT context in the message headers
  • 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 class JaxWSHeaderContextProcessor
      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.