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 receive a message, like usual, onMessage() method is triggered
getting "message" object. On "message" object, I can access only to its
connection but not to its session (neither its consumer).
Having more sessions opened, I need to identify exactly the session on
which the message has been received. Then I need to close it and open
another new session.
Do you know how to identify a message session on onMessage() method?
All suggestions would be appreciated and code snippet would be even better.
Best Regards
--
SMC Consulting <http://www.smcconsulting.it>
facebook <http://www.facebook.com/SMC-Consulting-Srl-597548223675024/>
linkeding <http://www.linkedin.com/company/smc-consulting-srl>
*Alessandro Crotti*
Senior Developer
tel: +39 342 573 4450
skype: crotti.alessandro
*SMC Consulting* <http://www.smcconsulting.it>
Via dell'industria, 87 41012 Carpi (MO) - Italy
tel: +39 059 664875
CONFIDENTIALITY NOTICE: This message may contain confidential and/or
privileged information.
If you are not the intended recipient, please do not use its contents
for any purpose, advise
the sender immediately by reply e-mail and delete this message and any
attachments without retaining a copy.