activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ankit Vernekar <ankit.s.verne...@gmail.com>
Subject Message not removed from queue
Date Tue, 12 May 2009 06:25:10 GMT

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.


Mime
View raw message