By default, the server does not time out 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 GlassFish Server rolls back the transaction.
In the navigation tree, expand the Configuration node.
Select the instance to configure:
To configure a particular instance, select the instance's config node. For example, the default instance, server
, select the server-config
node.
To configure the default settings for all instances, select the default-config
node.
Select the Transaction Service node.
The Transaction Service page opens.
In the Transaction Timeout field, type the number of seconds before the transaction times out.
The default value is 0. This value disables transaction timeouts.
Click Save.
Restart the GlassFish Server.