log.info("received message:" + r1);
   public void testRedel7() throws Exception   {      Connection conn = null;       try       {          conn = cf.createConnection();          conn.start();          Session sess = conn.createSession(false, Session.CLIENT_ACKNOWLEDGE);          MessageProducer prod = sess.createProducer(queue);          prod.send(sess.createTextMessage("1"));          prod.send(sess.createTextMessage("2"));          prod.send(sess.createTextMessage("3"));                    log.info("sent messages");          MessageConsumer cons1 = sess.createConsumer(queue);          Message r1 = cons1.receive();                    log.info("received message:" + r1);          cons1.close();                    log.info("closed consumer");          MessageConsumer cons2 = sess.createConsumer(queue);          log.info("trying to receive");          Message r2 = cons2.receive();                    log.info("Received r2:" + r2);                    Message r3 = cons2.receive();                    log.info("Received r3:" + r3);          r1.acknowledge();          r2.acknowledge();          r3.acknowledge();       }       finally       {          if (conn != null)          {             conn.close();          }       }   }