Results 1 to 2 of 2

Thread: DefaultMessageListenerContainer

  1. #1

    Default 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. #2

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •