This content has been marked as final.
Show 3 replies
-
1. Re: What should my MessageHandler do to expect a redelivery of the same message with getDeliveryCount increased.
ataylor Feb 3, 2012 8:59 AM (in response to yannywang)you should rollback to ensure the message is redelivered.
-
2. Re: What should my MessageHandler do to expect a redelivery of the same message with getDeliveryCount increased.
yannywang Feb 6, 2012 12:28 AM (in response to ataylor)Hi Andy,
so I should do No.4:session.rollback()?, not No.3 message.acknowledge() and session.rollback()?
do I need to have persist-delivery-count-before-delivery>true</persist-delivery-count-before-delivery> in order to see DeliveryCount increase? I believe I did No.4 before yet the DeliveryCount still remains.
I will try again and update.
-
3. Re: What should my MessageHandler do to expect a redelivery of the same message with getDeliveryCount increased.
yannywang Feb 6, 2012 12:53 AM (in response to yannywang)after I tried, I believe we need to do message.acknowledge() and session.rollbac(tru);