6 Replies Latest reply on Jun 23, 2008 7:42 PM by gan.gary

    Multiple sessions for multiple datasources in JBoss?

    gan.gary Novice

      I have a Jboss apps that need to save to 2 databases. It works OK for Hibernate:

      If using either one is ok, but use both I will hit error:

      2008-06-17 17:21:19,429 WARN [com.arjuna.ats.jta.logging.loggerI18N] [com.arjuna.ats.internal.jta.transaction.arjunacore.enliststarterror] [com.arjuna.ats.internal.jta.transaction.arjunacore.enliststarterror] TransactionImple.enlistResource - XAResource.start returned: XAException.XAER_PROTO for < 131075, 26, 24, 1-acc550a:1308:485781ef:7dacc550a:1308:485781ef:85
      2008-06-17 17:21:19,429 ERROR [STDERR] org.jboss.resource.connectionmanager.JBossLocalXAException: Trying to start a new tx when old is not complete! old: < 131075, 26, 24, 1-acc550a:1308:485781ef:40acc550a:1308:485781ef:49
      2008-06-17 17:21:19,445 ERROR [STDERR] at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.start(TxConnectionManager.java:886)
      2008-06-17 17:21:19,445 ERROR [STDERR] at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.enlistResource(TransactionImple.java:776)

      I looked at other forum , it mentioned :
      JBoss TS, the new default transaction manager will not let you enlist multiple 1-phase participants in the same transaction.
      http://www.jpox.org/servlet/forum/printpost?post=26318

      correct?