ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS listener and rollback

Post new topic  Reply to topic
 JMS listener and rollback « View previous topic :: View next topic » 
Author Message
pmehta
PostPosted: Mon May 03, 2004 11:18 pm    Post subject: JMS listener and rollback Reply with quote

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?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue May 04, 2004 5:55 am    Post subject: JMS Listeners Reply with quote

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.

Thanks
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JMS listener and rollback
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.