[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Expected Behaviour MessagingXAResource.isSame

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed Jan 14 15:23:39 EST 2009


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
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4201931#4201931

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4201931



More information about the jboss-dev-forums mailing list