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 » CLIENT_Acknowledge in JMS

Post new topic  Reply to topic
 CLIENT_Acknowledge in JMS « View previous topic :: View next topic » 
Author Message
Sandyjo15
PostPosted: Thu May 09, 2002 7:37 am    Post subject: Reply with quote

Newbie

Joined: 08 May 2002
Posts: 4

Is there any way in MQ-JMS to individually acknowledge each message in a pub-sub scenario? message.acknowldge()acknowledges all the messages received by the session.

Thanks,
Jo
Back to top
View user's profile Send private message
amurugan
PostPosted: Thu May 09, 2002 4:48 pm    Post subject: Reply with quote

Voyager

Joined: 10 Sep 2001
Posts: 75
Location: india

hi jo ,
Yes message .acknowledge will acknowledge all the messages recieved in the current session. try to use session.recover() and let me know whether it acheives your requirement

cheers,
MURUGAN
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Sandyjo15
PostPosted: Wed May 29, 2002 3:31 pm    Post subject: This is not the solution Reply with quote

Newbie

Joined: 08 May 2002
Posts: 4

Session.recover() marks all the messages that might have delivered, but not acknowledges as "redelivered". This is not what I am looking for..I will give a detailed desc.:

I am receiving messages in onMessage method. Let's say I receive messages 1-10, and after receiving 10 messages, I want to acknowledge only messages 1-5 and not all the 10 messages, how do I do that? Using Session.recover() won't redeliver messages 6-10 as on acknowleding message 5 will automatically acknowledge all the messages that have been received in that session.
Back to top
View user's profile Send private message
kolban
PostPosted: Wed May 29, 2002 6:53 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

What does the JMS spec say about this? I am thinking that acknowledging a later message is supposed to acknowledge all previous messages as well.
Back to top
View user's profile Send private message
Sandyjo15
PostPosted: Thu May 30, 2002 10:03 am    Post subject: Reply with quote

Newbie

Joined: 08 May 2002
Posts: 4

The JMS Specifications says what I have stated. Is there a way to do what I need is what I am asking you geniuses!!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » CLIENT_Acknowledge in JMS
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.