2 Replies Latest reply on May 23, 2006 10:38 AM by marklittle

    XA recovery in JBossMQ

    paul.robinson

      Hello,

      I noticed on the JBossTS forum the following posting:

      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=83316

      This posting is off-topic in the JBossTS forum and as such won't get a response.

      I would also like an answer to this query, can we discuss it here please?

      Thanks,

      Paul.

        • 1. Re: XA recovery in JBossMQ
          paul.robinson

          To make things easier, here is the origional posting:

          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


          • 2. Re: XA recovery in JBossMQ
            marklittle

            Unfortunately the original post is not very useful without the response(s) that followed. Interested parties should read all of the original thread.