3 Replies Latest reply on May 19, 2006 4:32 PM by marklittle

    JBoss Transactions and JBoss MQ

    pbober

      In order to get proper crash recovery, I was advised to use JBoss Transactions in place of the built in JBoss transaction manager. But a colleague pointed out to me that the recover() method in SpyXAResource.java returns an empty list of xids.

      public Xid[] recover(int arg1) throws XAException
      {
      if (log.isTraceEnabled())
      log.trace("Recover arg1=" + arg1 + " " + this);

      return new Xid[0];
      }

      Doesn't this mean that MQ will forget about any transactions that were left in the prepared state when a crash occurs? Will JBoss Transactions buy me anything. Our transactions span MQ (backed by Oracle) and Hibernate (also backed by Oracle).

      Thanks