Jboss中EJB使用时,同时调用两个数据源的时候出现问题
同时调用两个数据源程序会报错[com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@d006a7
需要在jboss 配置文件jbossjta-properties.xml中增加<property name="com.arjuna.ats.jta.allowMultipleLastResources" value="true"/> 这个配置后应用正常
文章来自:http://blog.easyea.com/louis/2007/8