Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Configure servers with scripting > Configure the runtime transaction service using scripting


Configure the WS-Transaction specification level by using wsadmin scripting

We can configure the default WS-Transaction specification level to use for outbound requests that include a Web Services Atomic Transaction (WS-AT) or Web Services Business Activity (WS-BA) coordination context.

The product supports the WS-Transaction 1.0, the WS-Transaction 1.1 and the WS-Transaction 1.2 specifications, but when an outbound request is sent, only one specification level can be used. The default WS-Transaction specification level is used if the specification level that the server requires cannot be determined from the provider policy (the WS-Transaction WS-Policy assertion). This situation might occur when the policy assertion is not available either from the WS-Transaction policy type of the client or from the WSDL of the target web service. Also, this situation might occur when the policy assertion is available, but the client and the target web service support both specification levels.

For details of the specifications, see the topics about Web Services Atomic Transaction support and Web Services Business Activity support in the application server.

We can set the default WS-Transaction specification level using wsadmin.sh, as described in this task, or by using the admin console and configuring the relevant transaction property for the application server.


Procedure

  1. Start the wsadmin scripting client if it is not already running.
  2. Retrieve the configuration ID of the transaction service. In Jacl, use the following code example:
    set txService $AdminConfig list TransactionService
    
    In Jython, use the following code example:
    txService = AdminConfig.list("TransactionService")
    
  3. Modify the WSTransactionSpecificationLevel attribute to the value you require. In Jacl, to configure the server to use WS-Transaction 1.1, use the following code example:
    $AdminConfig modify $txService {{WSTransactionSpecificationLevel WSTX_11}}
    
    
    In Jython, to configure the server to use WS-Transaction 1.0, use the following code example:
    AdminConfig.modify ($txService,[["WSTransactionSpecificationLevel", "WSTX_10"]])
    

  4. Save the configuration changes with wsadmin.sh.

  5. Optional: In a network deployment environment only, synchronize the node by using wsadmin.sh.


Results

You have configured the default WS-Transaction specification level for the server.
Web Services Atomic Transaction support in the application server
Web Services Business Activity support in the application server
Saving configuration changes with wsadmin.sh
Synchronize nodes using wsadmin.sh
Configure transaction properties for an application server
Use WS-Transaction policy to coordinate transactions or business activities for web services
Configure the runtime transaction service using scripting

+

Search Tips   |   Advanced Search