|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
CLIENT_Acknowledge in JMS |
« View previous topic :: View next topic » |
Author |
Message
|
Sandyjo15 |
Posted: Thu May 09, 2002 7:37 am Post subject: |
|
|
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 |
|
 |
amurugan |
Posted: Thu May 09, 2002 4:48 pm Post subject: |
|
|
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 |
|
 |
Sandyjo15 |
Posted: Wed May 29, 2002 3:31 pm Post subject: This is not the solution |
|
|
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 |
|
 |
kolban |
Posted: Wed May 29, 2002 6:53 pm Post subject: |
|
|
 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 |
|
 |
Sandyjo15 |
Posted: Thu May 30, 2002 10:03 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|