xaResource = new JBossXAResource(parent.getResourceManager(), this);
xaResource = new MessagingXAResource(parent.getResourceManager(), this);
   public SessionState(ConnectionState parent, SessionDelegate delegate,                       boolean transacted, int ackMode, boolean xa)   {      super(parent, delegate);      children = new HashSet();      this.acknowledgeMode = ackMode;      this.transacted = transacted;      this.xa = xa;            if (xa)      {         //Create an XA resource         xaResource = new JBossXAResource(parent.getResourceManager(), this);                                  }      if (transacted)      {         //Create a local tx                                                           currentTxId = parent.getResourceManager().createLocalTx();              }      executor = new QueuedExecutor(new LinkedQueue());   }