JMS doesn't provide a route to determine the consumer/session/connection
from a given Message, presumably because they are not in general tied to
specific instances of these (the only way I can think any are directly
related is the acknowledge() method). You would need to simply remember
such thing
Hi,
When I'm consuming a message (running onMessage() method) there could be
a particular condition why I need to close that message session and open
it again.
My application starts a connection to the Broker with many Sessions and,
for each of those Sessions, one MessageConsumer.
When I r