Announcement Announcement Module
Collapse
No announcement yet.
DefaultMessageListenerContainer Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • DefaultMessageListenerContainer

    Hello,

    Im new to spring and would like to know the easiest way to rollback messages using the DefaultMessageListenerContainer. My setup seems to be correct, and everything is working lovely. However, when an exception is throws I would like the message to be put back on the queue, and the listener to shut down. What is the easiest way to do this? should I somehow participate in a transaction?

  • #2
    Nevermind, found it...it was easy as setting the sessionTransacted property to true on the listener...i love spring!

    Comment

    Working...
    X