aspose file tools*
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 Spring in Action this week in the Spring 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.
 
Don't get me started about those stupid light bulbs.
 
subject: JMS: rollback