File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS: rollback

 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 296
Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 296
Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe it would be better to roll another client just for transferring between queues?
 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like this should be implemented with MOM.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic