// using XA with a ConnectionConsumer (testing the transaction behavior under MDBs)
XAConnectionFactory xacf = (XAConnectionFactory)cf;
xaconn = xacf.createXAConnection();
xaconn.start();
XASession xasession = xaconn.createXASession();
DummyListener listener = new DummyListener();
xasession.setMessageListener(listener);
ServerSessionPool pool = new MockServerSessionPool(xasession);