camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "christian.ohr" <christian....@googlemail.com>
Subject Re: ActiveMQ redelivery
Date Fri, 24 Aug 2012 13:07:56 GMT
Hi Shally,

you should make your JMS Configuration transactional, also see
http://camel.apache.org/how-do-i-make-my-jms-endpoint-transactional.html. 

JmsConfiguration should get transacted=true and a reference to a transaction
manager, e.g. 

	<bean id="jmsTransactionManager"
		class="org.springframework.jms.connection.JmsTransactionManager">
		<property name="connectionFactory" ref="pooledConnectionFactory" />
	</bean> 

If you get an exception from sending away your message (and you don't
explicitly handle it in an exception handler), the message will be rolled
back into the queue.

When you send to multiple endpoints, consider using a separate queue for
each of them - otherwise, if only one endpoint is down, the message may get
redelivered to the others as well, even though they might have already
received it before.

regards
Christian



--
View this message in context: http://camel.465427.n5.nabble.com/ActiveMQ-redelivery-tp5717941p5718012.html
Sent from the Camel Development mailing list archive at Nabble.com.

Mime
View raw message