Hitachi

Hitachi Application Server V10 Definition Reference Guide (For UNIX® Systems)


4.2.7 com.sun.enterprise.in-progress-local-transaction.completion-mode

com.sun.enterprise.in-progress-local-transaction.completion-mode specifies whether the Java EE Server commits or revert non-XA transactions (such as JTA transactions) during server shutdown.

Description

When you shut down a Server instance, all the database connections are closed. If the Oracle JDBC driver-based database connection is closed in the middle of a non-XA transaction, then all the pending changes are committed. Other databases usually revert the pending changes when a connection is closed before the changes are explicitly committed.

To explicitly specify whether Java EE Server commits or reverts non-XA transactions during server shutdown, set the com.sun.enterprise.in-progress-local-transaction.completion-mode JVM option to either commit or rollback using the create-jvm-options subcommand.

Specifiable values

Type: String

{commit | rollback}

Initial value

rollback

Default value

If the definition item is omitted

Neither commit nor rollback is executed.

Examples

asadmin> create-jvm-options --target instance1 
-Dcom.sun.enterprise.in-progress-local-transaction.completion-mode=rollback

Notes

Used in the server