activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrzej K <>
Subject Do I need to reconnect upon exception from receive()
Date Tue, 13 Sep 2016 14:21:25 GMT
Hi Everyone,
I have a problem with CMS Client, and I am not able to figure out from the
documentation what state the connection and session objects are left in
after I got an exception from MessageConsumer::receive().
I have an open connection and a session. I call MessageConsumer::receive()
on my consumer, and an exception is thrown. When I catch it, does it mean
that my connection and session are still in tact? Or am I expected to reset
Them? Or does it depend on the exception? the documentation seems to be
missing this important aspect.


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message