Posted: Mon May 03, 2004 11:18 pm Post subject: JMS listener and rollback
Novice
Joined: 29 Jul 2003 Posts: 13
I am using JMS over MQ for asynchronous messaging. I use setMessageListener method to start a listener on a specific queue so that when the response (which is in Copybook format) comes the onMessage() method will pick the same. The onMessage() method after receiving the response again starts the listener to receive the next response. So there is continously a listener waiting on the queue.
After picking up the response I have to convert the message from Cobybook to XML. In case there is any problem I want to rollback the message back to the queue, on which I have set the listener.
My problem is,
1. How to rollback a message once it is recived by a listener?
2. After rollback will the next listener is capable of reading the message?
Posted: Tue May 04, 2004 5:55 am Post subject: JMS Listeners
Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
Please read up documentation on J2EE and JMS as well on JMS listeners.
This is not the way the JMS listeners work.
At the same time read up on EJB and JMS transaction model.
All answers are there.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum