解决JBOSS6实体BEAN 持久化单元不能连接多个数据源问题

解决JBOSS6实体BEAN 持久化单元不能连接多个数据源问题

 

修改$jboss_home/server/$domain/deploy 文件夹中的transaction-jboss-beans.xml文件找到

 

<bean name="CoreEnvironmentBean" class="com.arjuna.ats.arjuna.common.CoreEnvironmentBean">

 

<annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.jta:name=CoreEnvironmentBean", exposedInterface=com.arjuna.ats.arjuna.common.CoreEnvironmentBeanMBean.class, registerDirectly=true)</annotation>

 

<constructor factoryClass="com.arjuna.ats.arjuna.common.arjPropertyManager" factoryMethod="getCoreEnvironmentBean"/>

 

<property name="socketProcessIdPort">

<value-factory bean="ServiceBindingManager"

                           method="getIntBinding">

<parameter>TransactionManager</parameter>

<parameter>socketProcessId</parameter>

</value-factory>

</property>

 

<property name="nodeIdentifier">1</property>

 

<property name="socketProcessIdMaxPorts">10</property>

 

<!—新加入该行–>

<property name="allowMultipleLastResources">true</property>

 

</bean>

 

你可能感兴趣的:(jboss)