Notes : Use XA Service on GlassFishV3-prelude and b23.

If your application use the "JTA" transaction before install the module "glassfish-jts" by "Update Tool", "java.lang.IllegalStateException" will appear on the "server.log" file.
You need to install the module "glassfish-jts", but you must take care this installation.
Because, the "Update Tool" doesn't resolve dependencies automatically. So, if you would like to install the module "glassfish-jts", you also need to install the module "glassfish-corba-omgapi".
If you run the command "asadmin start-domain" after you install only the module "glassfish-jts", java.lang.ClassNotFoundException will appear on the "server.log" file.

Please check Issue "#5886" for more details.

In next page or later, show you the correct sequence of "glassfish-jts" and "glassfish-corba-omgapi" installation.

Next ->

If you want to configure the "Transaction Service" after Installation has done, modify the "domain.xml" file at line 154.
The contents is below :

<transaction-service tx-log-dir="${com.sun.aas.instanceRoot}/logs" heuristic-decision="rollback" timeout-in-seconds="0" retry-timeout-in-seconds="600" automatic-recovery="false" keypoint-interval="2048" />


Above these property-values are defaults. To set these properties forrowing by :
Property Name Description
automatic-recovery Set to enable the Recovery Of Incomplete Transactions
retry-timeout-in-seconds To Set the amount of time, in seconds, the Enterprise Server tries to connect to the unreachable server in the RetryTimeout field
heuristic-decision To Set the policy for unreachable servers in a transaction in the Heuristic Decision field
timeout-in-seconds To set the Transaction Timeout Value
tx-log-dir To set the Location of the Transaction Logs
keypoint-interval To Set the Keypoint Interval

To enable the configration, you need to stop and start domain by asadmin command.