In one of our timer ejb we calls to 2 non xa datasources in jboss 6 and we get the following error.
[org.hibernate.util.JDBCExceptionReporter] (http-0.0.0.0-443-4) Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 0:ffff0ab1ded5:1396:544f790a:1842 status: ActionStatus.ABORT_ONLY >); - nested throwable: (org.jboss.resource.JBossResourceException: Could not enlist in transaction on entering meta-aware object!; - nested throwable: (javax.transaction.SystemException: java.lang.Throwable: Unabled to enlist resource, see the previous warnings. tx=TransactionImple < ac, BasicAction: 0:ffff0ab1ded5:1396:544f790a:1842 status: ActionStatus.ABORT_ONLY >))
There are advice's to modify the jbossjta-properties.xml to include the following, but this also did not work as jboss 6 doesn't have this file.
<properties depends=”arjuna” name=”jta”>
<property name=”com.arjuna.ats.jta.allowMultipleLastResources” value=”true”/>
Please let us know on how to enable multiple non xa datasources in a transaction in jboss 6.
经过一番谷歌搜索之后,我发现在JBoss 6 for CoreEnvironmentBean
bean的deploy文件夹中的transaction-jboss-beans.xml
中添加以下属性可以CoreEnvironmentBean
。
<property name="allowMultipleLastResources">true</property>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.