3 Replies Latest reply on Jan 14, 2009 4:28 PM by Clebert Suconic

    Expected Behaviour MessagingXAResource.isSame

    Clebert Suconic Master

      This is for JBM 1.4:


      What is the expected behaviour of isSame, with two distinct ResourceManagers, one from each JMSSession?

      The following test would fail:

      XASession sess = conn.createXASession();
       MessagingXAResource res = (MessagingXAResource)sess.getXAResource();
      
       XASession sess2 = conn.createXASession();
       MessagingXAResource res2 = (MessagingXAResource)sess2.getXAResource();
      
       Transaction tx = tm.getTransaction();
      
      
       assertFalse(res.isSameRM(res2)); // This would fail