module
propertyManager
class., which provides static getter methods for one or more name
EnvironmentBean
classes. An example is com.arjuna.ats.arjuna.commmon.arjPropertyManager
. These environment beans are standard JavaBean containing properties for each configuration option in the system. Typical usage is of the form:
int defaultTimeout = arjPropertyManager.getCoordinatorEnvironmentBean().getDefaultTimeout();
<entry key="CoordinatorEnvironmentBean.commitOnePhase">YES</entry>
. Valid values for Boolean properties are case-insensitive, and may be one of:
<entry key="RecoveryEnvironmentBean.recoveryModuleClassNames"> com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule com.arjuna.ats.internal.txoj.recovery.TORecoveryModule </entry>
setter
method for that field is invoked with the value from the properties, or the system properties if different.
setter
methods to change the value of bean properties while the system is running typically has no effect, unless it is done prior to any use of the transaction system. Altered bean properties are not persisted back to the properties file.