Broker version : 5.4.3
Code written for session creation and closing,

ActiveMQConnectionFactory connectionFactory = new
ActiveMQConnectionFactory("tcp://1.2.3.4:61616");
connection = connectionFactory.createConnection();
connection.start();
Session session = connection.createSession(false,
Session.CLIENT_ACKNOWLEDGE);

//while closing a session, will perform a null check and call close().
session.close();

Also please note that, this application is multi-tenant which has individual
consumer for each customer.
Though, the messages in queue are read by all the consumers of the queue
only the intended consumer will acknowledge the message.




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Session-is-not-getting-closed-tp4693402p4693450.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to