ejb3 多個數據源時異常處理

ejb3 多個數據源時異常處理

 

調用一個ejb 會話bean的方法,用到了2個數據庫,

提示異常:Unable to enlist resource, see the previous warnings

 

解決方法:

jboss-6.simple\server\default\deploy\transaction-jboss-beans.xml

 

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

中增加

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章