1.2. Setting Properties

You can configure JBossJTA at runtime by setting various property attributes, either at run-time on the command line, or through a properties file. The initial properties file is located at $JBOSS_HOME/server/default/conf/jbossts-properties.xml.

1.2.1. Specifying the Object Store Location

JBossJTA uses an object store to persistently record the outcomes of transactions, to be used in the event of failures. To customize the location of the object store, you need to pass the location when you are executing the application, as shown in Example 1.1, “Specifying the Object Store”.

Example 1.1. Specifying the Object Store

	  java –Dcom.arjuna.ats.arjuna.objectstore.objectStoreDir=/location/of/objectstore myprogram
By default, the object store is located in a a directory beneath the current execution directory.
By default, all object states are stored within the defaultStore sub-directory of the object store root. You can change the sub-directory by setting the com.arjuna.ats.arjuna.objectstore.localOSRoot property variable.