wood burning stoves 2.0*
The moose likes Java in General and the fly likes JMS: rollback Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "JMS: rollback" Watch "JMS: rollback" New topic
Author

JMS: rollback

surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

Hello Partners.
I have 1 consumer and 2 messages in a Queue, consumer unable to process message 2 at this time.
How would I rollback receiving of the 2'nd message, and consume it later? Is it possible to "hide" the message 2 from consumer for specified period of time?
Thanks!
surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

Or should I add "LastRollbackTimestamp" to JMS message header and use selector to get messages that spent some time in queue after rollback?
surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

Maybe it would be better to roll another client just for transferring between queues?
surlac surlacovich
Ranch Hand

Joined: Mar 12, 2013
Posts: 296

Looks like this should be implemented with MOM.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JMS: rollback
 
Similar Threads
putting back into the queue the JMS messages
Rollback
Doubt about MDB behavior
Rollback in JMS
Web Service Processing taking too long need help in re-design