Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS: rollback

 
surlac surlacovich
Ranch Hand
Posts: 296
Spring
  • 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
  • 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
  • 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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like this should be implemented with MOM.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic