JBossConnection jbConn = (JBossConnection)conn;
ClientConnectionDelegate del = (ClientConnectionDelegate)jbConn.getDelegate();
ConnectionState state = (ConnectionState)del.getState();
ResourceManager rm = state.getResourceManager();
// Create a session
XASession sess1 = conn.createXASession();
MessagingXAResource res1 = (MessagingXAResource)sess1.getXAResource();
byte[] branchQualifier = new byte[] { 1, 2, 3, 4, 5, 6, 0, 0, 0, 0 };