activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spam trap <>
Subject Acknowledgements and transacted sessions
Date Mon, 28 May 2012 10:00:46 GMT

Can someone help me understand better the way ActiveMQ handles
transactions and acknowledgements?

I need to write a consumer that processes a message.  If something
goes wrong or the consumer crashes we need the message to be consumed
again (when the consumer is restarted).

Should I use CLIENT_ACKNOWLEDGE (with message.acknowledge()) or
SESSION_TRANSACTED (with a session.commit())? 

View raw message