WAS v8.5 > Administer applications and their environment > Administer web services - Transaction support (WS-Transaction) > Use WS-Transaction policy to coordinate transactions or business activities for web services

Configure a JAX-WS web service for WS-Transaction context

We can configure the way that a Java API for XML Web Services (JAX-WS) service handles Web Services Atomic Transaction (WS-AT) or Web Services Business Activity (WS-BA) context by configuring the Web Services Transaction (WS-Transaction) policy type. We can specify the web service must receive context, can receive context if it is available, or must not receive context.

A JAX-WS client must be installed.

We can configure a WS-Transaction policy set using the dmgr console as described in this task, or we can configure a WS-Transaction policy set using wsadmin scripting.

To configure a JAX-WS service for WS-Transaction context using the dmgr console...

  1. Create a new policy set, or copy and rename an existing policy set. We can copy an existing user-defined policy set, or one of the WS-Transaction default policy sets (WSTransaction or SSL WSTransaction). See Create policy sets .
  2. Check that your policy set includes the WS-Transaction policy type. If necessary, add the WS-Transaction policy type. See Add policies to policy sets .
  3. Configure the WS-Transaction policy.
  4. Associate the policy set with the JAX-WS web service, endpoint, or operation for which the specified behavior is required. See Manage policy sets and bindings for service providers.

  5. Save your changes to the master configuration.


Results

The JAX-WS web service, endpoint, or operation is configured to use WS-Transaction context in the way that you specified.


Related concepts:

WSTransaction default policy sets
Web Services Atomic Transaction support in the application server
Web Services Business Activity support in the application server


Related


Create policy sets
Add policies to policy sets
Configure the WS-Transaction policy
Manage policy sets and bindings for service providers at the application level
Configure a JAX-WS client for WS-Transaction context


+

Search Tips   |   Advanced Search