conn.start();
Session sessSend = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
JBossMessageProducer prod = (JBossMessageProducer)sessSend.createProducer(queue1);
prod.enableOrderingGroup(null);
TextMessage m0 = sessSend.createTextMessage("a");
TextMessage m1 = sessSend.createTextMessage("b");
TextMessage m2 = sessSend.createTextMessage("c");
TextMessage m3 = sessSend.createTextMessage("d");
TextMessage m4 = sessSend.createTextMessage("e");
TextMessage m5 = sessSend.createTextMessage("f");
TextMessage m6 = sessSend.createTextMessage("g");
TextMessage m7 = sessSend.createTextMessage("h");
TextMessage m8 = sessSend.createTextMessage("i");
TextMessage m9 = sessSend.createTextMessage("j");
Random rdm = new Random();
int pri = rdm.nextInt(10);
prod.send(m0, DeliveryMode.NON_PERSISTENT, pri, 0);
pri = rdm.nextInt(10);
prod.send(m1, DeliveryMode.NON_PERSISTENT, pri, 0);
pri = rdm.nextInt(10);
prod.send(m2, DeliveryMode.NON_PERSISTENT, pri, 0);
pri = rdm.nextInt(10);
prod.send(m3, DeliveryMode.NON_PERSISTENT, pri, 0);
pri = rdm.nextInt(10);
prod.send(m4, DeliveryMode.NON_PERSISTENT, pri, 0);
pri = rdm.nextInt(10);
prod.send(m5, DeliveryMode.NON_PERSISTENT, pri, 0);
pri = rdm.nextInt(10);
prod.send(m6, DeliveryMode.NON_PERSISTENT, pri, 0);
pri = rdm.nextInt(10);
prod.send(m7, DeliveryMode.NON_PERSISTENT, pri, 0);
pri = rdm.nextInt(10);
prod.send(m8, DeliveryMode.NON_PERSISTENT, pri, 0);
pri = rdm.nextInt(10);
prod.send(m9, DeliveryMode.NON_PERSISTENT, pri, 0);
// NP messages are sent async so we need to allow them time to all hit the server
Thread.sleep(2000);
Session sessReceive = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);