zoukankan      html  css  js  c++  java
  • EJB 使用多个数据源问题

    如果在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文件里。

  • 相关阅读:
    个人总结11
    进度条4,5
    对vivo自带输入法的评价
    个人总结10
    hdu5589Tree
    HDU5213 Lucky
    2018icpcShenYangE
    bzoj3683: Falsita
    cf396C. On Changing Tree
    cf600E. Lomsat gelral
  • 原文地址:https://www.cnblogs.com/liuruichao/p/4005877.html
Copyright © 2011-2022 走看看