This content has been marked as final.
Show 3 replies
-
1. Re: Set Redelivery on a Per Message Basis
ataylor 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 ataylor)Thank you Andy.
-
3. Re: Set Redelivery on a Per Message Basis
leosbitto 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.