activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suganya <suganya....@gmail.com>
Subject Re: Session is not getting closed
Date Thu, 19 Mar 2015 09:56:33 GMT
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.

Mime
View raw message