This content has been marked as final.
Show 3 replies
-
1. Re: Set Redelivery on a Per Message Basis
Andy Taylor Aug 18, 2011 6:03 AM (in response to Sergiu Pienar)not currently, feel free to open a feature request tho.
-
2. Re: Set Redelivery on a Per Message Basis
Sergiu Pienar Aug 18, 2011 6:05 AM (in response to Andy Taylor)Thank you Andy.
-
3. Re: Set Redelivery on a Per Message Basis
Leos Bitto Aug 18, 2011 7:23 AM (in response to Sergiu Pienar)Sergiu Pienar wrote:
Can I somehow add a max-delivery-attempts of 1 to each message I want to be processed only once ?
You should be able to commit the JMS session (instead of rollback) in your code when processing such message. If you use MessageListener, simply do not throw any RuntimeException from your onMessage() for such messages.