com.arjuna.mw.wst11.service
Class JaxWSSubordinateHeaderContextProcessor

java.lang.Object
  extended by com.arjuna.mw.wst11.service.JaxWSHeaderContextProcessor
      extended by com.arjuna.mw.wst11.service.JaxWSSubordinateHeaderContextProcessor
All Implemented Interfaces:
Handler<SOAPMessageContext>, SOAPHandler<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 Summary
JaxWSSubordinateHeaderContextProcessor()
           
 
Method Summary
protected  boolean handleInbound(SOAPMessageContext msgContext)
          Process the tx context header that is attached to the received message.
protected  boolean handleInboundMessage(SOAPMessage soapMessage)
          Handle the request.
protected  boolean handleInboundMessage(SOAPMessage soapMessage, boolean installSubordinateTx)
          Handle the request.
protected  void suspendTransaction()
          Suspend the current transaction.
 
Methods inherited from class com.arjuna.mw.wst11.service.JaxWSHeaderContextProcessor
close, getHeaders, handleFault, handleMessage, handleOutbound, setHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JaxWSSubordinateHeaderContextProcessor

public JaxWSSubordinateHeaderContextProcessor()
Method Detail

handleInbound

protected boolean handleInbound(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(SOAPMessage soapMessage)
Handle the request.

Parameters:
soapMessage - The current message context.

handleInboundMessage

protected boolean handleInboundMessage(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.



Copyright © 2011. All Rights Reserved.