-
1. Re: Setting up transaction manager outside of JBoss AS
jhalliday Oct 24, 2011 4:35 AM (in response to jaikiran)Looks like you are trying to run JBossTS in JTS mode, which requires an ORB. Install one and you should be good to go.
-
2. Re: Setting up transaction manager outside of JBoss AS
jaikiran Oct 27, 2011 2:51 AM (in response to jhalliday)Jonathan Halliday wrote:
Looks like you are trying to run JBossTS in JTS mode, which requires an ORB.
Thanks for that hint. It appears that due to a property being set (somewhere within the bootup process), the JTS mode was triggered. I added an explicit property to use the JTA mode and the above code works just fine now. Thanks!
For those curious, here's what I did:
// These system properties are required or else we end up picking up JTS transaction manager, // which is not what we want System.setProperty(JTAEnvironmentBean.class.getSimpleName() + "." + "transactionManagerClassName", TransactionManagerImple.class.getName()); System.setProperty(JTAEnvironmentBean.class.getSimpleName() + "." + "transactionSynchronizationRegistryClassName", TransactionSynchronizationRegistryImple.class.getName()); txManager = jtaPropertyManager.getJTAEnvironmentBean().getTransactionManager(); txSyncRegistry = jtaPropertyManager.getJTAEnvironmentBean().getTransactionSynchronizationRegistry();
-
3. Re: Setting up transaction manager outside of JBoss AS
zvrablik79 Jan 24, 2012 3:19 AM (in response to jaikiran)you could modify the xml configuration file to use JTA instead of JTS. Default xml file is part of the jar file. Copy the xml file and rename it to jbossts-properties.xml and change JTAEnvironmentBean settings.
<entry key="JTAEnvironmentBean.transactionManagerClassName">com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionManagerImple</entry>
<entry key="JTAEnvironmentBean.userTransactionClassName">com.arjuna.ats.internal.jta.transaction.arjunacore.UserTransactionImple</entry>
I had to remove this entry too
<!-- <entry key="RecoveryEnvironmentBean.recoveryActivatorClassNames">com.arjuna.ats.internal.jts.orbspecific.recovery.RecoveryEnablement</entry> -->
Regards,
Zdenek