for that use case, use a transacted session for your consumer. It is
only with a transacted session that you will be able to get exactly
once semantics through failover and a guarantee on the delivery status
via the jmsredelivery flag.

On 25 November 2013 16:23, Sophia Wright <sophiawrigh...@gmail.com> wrote:
> Thanks for your response,
> Will you please let me know something about my first post regarding Client
> Acknowledgement Vs Transactions ? -->
> "I have a requirement where I am confused between transactions and Explicit
> acknowledgement. The requirement is:
> When a consumer receives a message it do some processing with the message
> before acknowledging the message. And while processing the message it could
> get some exception and consumer might crash in the middle of processing the
> message and when it comes up again, it should get the message. So since the
> message is already consumed but could not be processed completely, i want to
> get that message again.
>
> So here what should I use, transactions or explicit acknowledgement ? how to
> get this redelivery of messages ?
>
> In addition to that I also want to know behavior of transactions on both
> producer and consumer side.
> Like client acknowledgement is only for consumer. Is transactions for both?
> if yes, how differently it works for producer and consumer ?
> "
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/Transactions-in-ActiveMQ-tp4674759p4674823.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.



-- 
http://redhat.com
http://blog.garytully.com

Reply via email to