activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hans Bausewein <ha...@comerwell.xs4all.nl>
Subject Re: Failover / Persistence
Date Wed, 23 Jul 2008 06:07:40 GMT


Hans Bausewein wrote:
> 
> 
> If the consumers store their result in a database (or some other
> transactional application), use XA transactions (2-phase commit). If
> storage fails, the message should go back to the queue where it came from
> (both transactions rolled back) and the other consumer will attempt to
> process the same message.
> 

hmm, of course turning off autocommit and Session.rollback() on an exception
in the consumer would do fine in a stand-alone application.

Done too much J2EE, I guess.

Hans

-- 
View this message in context: http://www.nabble.com/Failover---Persistence-tp18602326p18604432.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message