activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <>
Subject Re: Transactions in ActiveMQ
Date Wed, 27 Nov 2013 10:18:08 GMT
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 <> 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:
> Sent from the ActiveMQ - User mailing list archive at


View raw message