JBoss 连接多个数据源

如果在JBoss中同时使用俩个数据源就会发生如下异常:

 

Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fe8b:f52:4cd284ca:9b status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -3f57fe8b:f52:4cd284ca:9b status: ActionStatus.ABORT_ONLY >)

 

Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@5cb57c

 

解决方法:

JBoss5 在conf/jbossts-properties.xml文件里,在<properties depends="arjuna" name="jta">节点下增加

<property name="com.arjuna.ats.jta.allowMultipleLastResources" value="true"/>属性。

 

注:Jboss4 在conf/jbossjta-properties.xml文件里。


原文:

http://community.jboss.org/message/8459#8459

http://community.jboss.org/wiki/Multiple1PC

你可能感兴趣的:(xml,jboss)