final Result result = new Result();
Connection conn = JMSTestCase.cf.createConnection();
final Session session = conn.createSession(true, Session.SESSION_TRANSACTED);
MessageConsumer cons = session.createConsumer(HornetQServerTestCase.queue1);
cons.setMessageListener(new MessageListener()
{
public void onMessage(final Message m)
{
// close the connection on the same thread that processed the message
try