Class JaxWSTxInboundBridgeHandler

java.lang.Object
org.jboss.jbossts.txbridge.inbound.JaxWSTxInboundBridgeHandler
All Implemented Interfaces:
jakarta.xml.ws.handler.Handler

public class JaxWSTxInboundBridgeHandler extends Object implements jakarta.xml.ws.handler.Handler
A handler that sits in the server side JAX-WS processing pipeline between the XTS header context processor and the web service. Takes the WS transaction context provided by the former and maps it to a JTA transaction context for use by the latter. Handles Thread association of the JTA context. Note: we assume that there is a web services transaction context present and that the service needs a JTA context. The handler should not be registered on methods unless both these conditions hold.
Author:
jonathan.halliday@redhat.com, 2007-04-30
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    close(jakarta.xml.ws.handler.MessageContext messageContext)
     
    boolean
    handleFault(jakarta.xml.ws.handler.MessageContext messageContext)
    Tidy up the Transaction/Thread association before faults are thrown back to the client.
    protected boolean
    handleInbound(jakarta.xml.ws.handler.MessageContext msgContext)
    Process inbound messages by mapping the WS transaction context to a JTA one and associating the latter to the current Thread.
    boolean
    handleMessage(jakarta.xml.ws.handler.MessageContext msgContext)
    Process a message.
    protected boolean
    handleOutbound(jakarta.xml.ws.handler.MessageContext msgContext)
    Tidy up the Transaction/Thread association before returning a message to the client.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JaxWSTxInboundBridgeHandler

      public JaxWSTxInboundBridgeHandler()
  • Method Details

    • handleMessage

      public boolean handleMessage(jakarta.xml.ws.handler.MessageContext msgContext)
      Process a message. Determines if it is inbound or outbound and dispatches accordingly.
      Specified by:
      handleMessage in interface jakarta.xml.ws.handler.Handler
      Parameters:
      msgContext - the context to process
      Returns:
      true on success, false on error
    • handleFault

      public boolean handleFault(jakarta.xml.ws.handler.MessageContext messageContext)
      Tidy up the Transaction/Thread association before faults are thrown back to the client.
      Specified by:
      handleFault in interface jakarta.xml.ws.handler.Handler
      Parameters:
      messageContext - unused
      Returns:
      true on success, false on error
    • close

      public void close(jakarta.xml.ws.handler.MessageContext messageContext)
      Specified by:
      close in interface jakarta.xml.ws.handler.Handler
    • handleInbound

      protected boolean handleInbound(jakarta.xml.ws.handler.MessageContext msgContext)
      Process inbound messages by mapping the WS transaction context to a JTA one and associating the latter to the current Thread.
      Parameters:
      msgContext - unused
      Returns:
      true on success, false on error
    • handleOutbound

      protected boolean handleOutbound(jakarta.xml.ws.handler.MessageContext msgContext)
      Tidy up the Transaction/Thread association before returning a message to the client.
      Parameters:
      msgContext - unused
      Returns:
      true on success, false on error