-
1. Re: Jboss jta properties configurations in a Stand alone application
mmusgrov Apr 15, 2013 4:42 AM (in response to abyv)You can use our various beans to set properties, eg:
BeanPopulator.getDefaultInstance(ObjectStoreEnvironmentBean.class).setObjectStoreDir("/tmp");
BeanPopulator.getDefaultInstance(CoordinatorEnvironmentBean.class).setDefaultTimeout(200);
but you can still use the file based mechanism by including your version of jbossts-properties.xml on the classpath where the xml file contains entries for the properties you want to change.
-
2. Re: Jboss jta properties configurations in a Stand alone application
abyv Apr 15, 2013 5:57 AM (in response to mmusgrov)Thanks a ton Micheal, this was what I was looking for. With respect to your response, I have one more query, can we set a path for transaction.log as well.
-
3. Re: Jboss jta properties configurations in a Stand alone application
mmusgrov Apr 15, 2013 6:30 AM (in response to abyv)Thanks a ton Micheal, this was what I was looking for. With respect to your response, I have one more query, can we set a path for transaction.log as well.
I included that in my example: BeanPopulator.getDefaultInstance(ObjectStoreEnvironmentBean.class).setObjectStoreDir("/tmp");
I don't think we document all of the properties in one place but each property is documented in its appliciable guide. For example http://docs.jboss.org/jbosstm/5.0.0.M2/guides/narayana-jta-installation_guide/ describes how to set the location of the transaction logs and
http://docs.jboss.org/jbosstm/5.0.0.M2/guides/narayana-jta-installation_guide/#chap-JBossJTA_Installation_Guide-Test_Chapter has some general information about setting properties.