Product SiteDocumentation Site

4.4. Outbound Bridging

To use the outbound bridge, register the JAX-WS handler into the handler chain of any Web Service client application as follows:
Example 4.2.  Registering the handler for Outbound Bridging
<handler-chain>
  <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
  <handler>
    <handler-name>TransactionBridgeHandler</handler-name>
    <handler-class>org.jboss.jbossts.txbridge.outbound.JaxWSTxOutboundBridgeHandler</handler-class>
  </handler>

  <handler>
    <handler-name>WebServicesTxContextHandler</handler-name>
    <handler-class>com.arjuna.mw.wst11.client.JaxWSHeaderContextProcessor</handler-class>
  </handler>
</handler-chain>

The web service client may then make calls to web service implementations that expect to be invoked in the scope of a WS-AT transaction.
Note that the handlers expect a JTA transaction context to be present on the client thread used to make the outbound web service invocation. If the context is not always present, different stubs must be used for the transactional and non-transactional cases and the handler chain registered only on the former. This limitation may be addressed in future versions.