2 Replies Latest reply on Jan 4, 2008 5:20 AM by Tim Fox

    XA Datasource?

    John Gilbert Apprentice

      Does JBM support XA Datasources? This posting seems to indicate that I should not use an XA Datasource with JBM. http://www.jboss.org/index.html?module=bb&op=viewtopic&t=119217

      I have an MDB that creates a timer using the EJB TimerServer. I have DefaultDS setup to use the Oracle XA driver and I have a non xa oracle datasource setup for JBM. When the MDB executes I get an javax.transaction.HeuristicMixedException.

      When I switch the TimerService to use the non xa datasource the exception goes away. However, this doesn't feel like the right solution.

      Can I use an XA datasource with JBM?


      My Environment:
      JBM 1.3
      JAS 4.2
      Oracle

      Stacktrace

      2008-01-03 15:12:31,076 ERROR [org.jboss.resource.adapter.jms.inflow.JmsServerSession] org.jboss.resource.adapter.jms.inflow.JmsServerSession@1f6a5e9 failed to commit/rollback
      javax.transaction.HeuristicMixedException
       at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1264)
       at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
       at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
       at org.jboss.resource.adapter.jms.inflow.JmsServerSession$XATransactionDemarcationStrategy.end(JmsServerSession.java:494)
       at org.jboss.resource.adapter.jms.inflow.JmsServerSession.run(JmsServerSession.java:248)
       at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
       at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
       at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
       at java.lang.Thread.run(Thread.java:595)