Admin Console Tasks for Transactions

When the transaction spans across servers, the server that started the transaction can contact the other servers to get the outcome of the transactions. If the other servers are unreachable, the transaction uses the Heuristic Decision field to determine the outcome.

1In the tree component select the Configurations node.

2Select the instance to configure:

To configure a particular instance, select the instance’s config node. For example, the default instance, server, select the server-confignode.

To configure the default settings for all instances, select the default-confignode.

3Select the Transaction Service node.

4To enable the recovery of incomplete transactions, check the Recover in the On Restart field.

5Set the amount of time, in seconds, the Enterprise Server tries to connect to the unreachable server in the Retry Timeout field. The default value is 10 minutes (600 seconds).

6Set the policy for unreachable servers in a transaction in the Heuristic Decision field.

Unless there is a good reason to set this field to Commit, leave Heuristic Decision set to Rollback. Committing indeterminate transactions can compromise the data integrity of your application.

7Set any needed properties.

Click the Add Properties button, type values in the Name and Value fields, and check the box to the left of the Name to activate the property.

8Click Save.

9Restart the Enterprise Server.

To set a transaction timeout value

By default, the server does not timeout a transaction. That is, the server waits indefinitely for a transaction to complete. If you set a timeout value for transactions, if a transaction isn’t completed within the configured time, the Enterprise Server rolls back the transaction.

1In the tree component, select the Configurations node.

146

Sun GlassFish Enterprise Server 2.1 Administration Guide • December 2008

Page 146
Image 146
Sun Microsystems 820433510 manual To set a transaction timeout value, Set any needed properties