control.createQueue("q", "/q");
ConnectionFactory cf = (ConnectionFactory)context.lookup("/cf");
Destination dest = (Destination)context.lookup("/q");
HornetQConnection conn = (HornetQConnection)cf.createConnection();
XASession ss = conn.createXASession();
TextMessage m1 = ss.createTextMessage("m1");
TextMessage m2 = ss.createTextMessage("m2");
TextMessage m3 = ss.createTextMessage("m3");
TextMessage m4 = ss.createTextMessage("m4");
MessageProducer mp = ss.createProducer(dest);