Hi, I am using the following code to read from the queue try { conFac=new ActiveMQConnectionFactory(); con=conFac.createConnection(); session=con.createSession(true, Session.CLIENT_ACKNOWLEDGE); Destination destination = new ActiveMQQueue("PaymentsXML"); con.start(); consumer=session.createConsumer(destination); consumer.setMessageListener(this); System.out.println("start ended"); session.commit(); } catch(Exception e) { System.out.println(e.getMessage()); }
the message is read but doesnt get deleted from the queue (i.e. queuesize doesnot get reduced).Please suggest a solution. Thank You, Ankit Vernekar -- View this message in context: http://www.nabble.com/Message-not-removed-from-queue-tp23496850p23496850.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.