Connection conn = cf.createConnection();
conn.start();
Session sess = conn.createSession(true, Session.SESSION_TRANSACTED);
MessageProducer prod = sess.createProducer(queue);
prod.send(sess.createMessage());
sess.commit();
MessageConsumer cons = sess.createConsumer(queue);
cons.receive();
sess.commit();
ClientSessionDelegate del = (ClientSessionDelegate)((JBossSession)sess).getDelegate();