Whenthe transaction spans across servers, the server that started the transaction can contact
theother servers to get the outcome of the transactions. If the other servers are unreachable, the
transactionuses the Heuristic Decision eld to determine the outcome.
Inthe tree component select the Congurations node.
Selectthe instance to congure:
Tocongurea particular instance, select the instance’s cong node. Forexample, the default
instance,server, select the server-config node.
Tocongurethe default settings for all instances, select the default-config node.
Selectthe Transaction Service node.
Toenablethe recovery of incomplete transactions, check the Recover in the On Restart eld.
Setthe amount of time, in seconds, the Enterprise Server tries to connect to the unreachable
serverin the Retry Timeout eld.The default value is 10 minutes (600 seconds).
Setthe policy for unreachable servers in a transaction in the Heuristic Decision eld.
Unlessthere is a good reason to set this eld to Commit, leave Heuristic Decision set to
Rollback.Committing indeterminate transactions can compromise the data integrity of your
application.
Setany needed properties.
Clickthe Add Properties button, type values in the Name and Value elds, and check the box to
theleft of the Name to activate the property.
ClickSave.
Restartthe Enterprise Server.
Toset a transaction timeout value
Bydefault, the server does not timeout a transaction. That is, the server waits indenitely for a
transactionto complete. If you set a timeout value for transactions, if a transaction isn’t
completedwithin the congured time, the Enterprise Server rolls back the transaction.
Inthe tree component, select the Congurations node.
1
2
3
4
5
6
7
8
9
1
AdminConsoleTasks for Transactions
SunGlassFishEnterprise Ser ver2.1 Administration Guide • December 2008146