이 콘텐츠는 선택한 언어로 제공되지 않습니다.
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
java –Dcom.arjuna.ats.arjuna.objectstore.objectStoreDir=/location/of/objectstore myprogramjava –Dcom.arjuna.ats.arjuna.objectstore.objectStoreDir=/location/of/objectstore myprogramjava –Dcom.arjuna.ats.arjuna.objectstore.objectStoreDir=/location/of/objectstore myprogramjava –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.