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 Java 8 in Action this week in the Java 8 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
Doubt about MDB behavior
Web Service Processing taking too long need help in re-design
Rollback in JMS
Rollback
putting back into the queue the JMS messages