A JBoss 5.1.0 Exception !

jbosscorp_logo

This is about another exception you may get while playing around with JBoss, Transactions, Remote EJBs etc. And the exception is:

org.jboss.resource.JBossResourceException:
Could not enlist in transaction on entering meta-aware object!

My friend Venu had a post in his blog on why this exception happens and how to fix it in JBoss 5.0. You can read it here. But if we are using JBoss 5.1.0 this solution cannot help us. Because there are a couple of changes in the configuration in this new version of JBoss. In fact if you can take a look at the JBoss 5.1.0 GA release notes we can see a lot of changes in configuration especially if we are migrating from JBoss 5.0 to 5.1.

And here is the solution.

Open the JBOSS_HOME/server/JBOSS_CONFIGURATION/conf/jbossts-properties.xml. Set the following.

<!-- Support subtransactions in the JTA layer? Default is NO. -->
<property name="com.arjuna.ats.jta.supportSubtransactions" value="YES"/>

Hope this helps.

P.S. If you have any more details in this issue, please feel free to share it. Thank you.

Advertisements