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.