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 server to use business activity support

Business activity support provides compensation for activities such as sending an email, which can be difficult or impossible to roll back atomically. With this compensation, applications on disparate systems can coordinate activities that are more loosely coupled than atomic transactions. To use the business activity support, first enable it on each server to use. If an application component uses business activity support, enable the support on each server that runs the application.

IBM recommends using the HPEL log and trace infrastructure. With HPEL, one views logs using the LogViewer command-line tool in PROFILE/bin.

  1. In the dmgr console, click Servers > Server Types > WebSphere application servers > server_name > [Container Settings] Container Services > Compensation Service.

  2. Select the Enable service at server startup check box.

  3. If required, modify the compensation handler retry interval and limit. These values control the frequency with which the compensation handler compensate and close methods are retried, when either throw a RetryCompensationHandlerException exception, and the number of times these methods are retried.

  4. Save your changes to the master configuration.
  5. Repeat the previous steps for each server that you plan to use.

  6. Restart all the servers for the changes to take effect.


Results

The business activity support is enabled for the application server. Verify a successful enablement by checking for the message, CWSCP0005I: The Compensation service started successfully. in the SystemOut.log file for the relevant server.

IBM recommends using the HPEL log and trace infrastructure. With HPEL, one views logs using the LogViewer command-line tool in PROFILE/bin.

Deploy the business-activity-enabled application to the server.


Subtopics


Related concepts:

Web Services Business Activity support in the application server
Transaction compensation and business activity support


Related


Create an application that uses the Web Services Business Activity support
Use the transaction service
Configure transaction properties for an application server
Troubleshoot applications with HPEL


Reference:

Business activity API


+

Search Tips   |   Advanced Search