You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by anoordover <an...@live.nl> on 2012/01/20 10:58:13 UTC

Container managed redelivery

With this route configuration:

	<camel:camelContext id="activeMQTestConsumerContext">

		<camel:endpoint id="activeMQTestQueue"
uri="amq:queue:${queue.name.activemqtest}" />

		<camel:route errorHandlerRef="errorHandler">
			<camel:from ref="activeMQTestQueue" />
			<camel:transacted ref="PROPAGATION_REQUIRED" />
			<camel:to uri="bean:activeMQTestService" />
		</camel:route>

	</camel:camelContext>

	
	<bean id="errorHandler"
		class="org.apache.camel.spring.spi.TransactionErrorHandlerBuilder">
		<property name="springTransactionPolicy" ref="PROPAGATION_REQUIRED" />
	</bean>

	<bean id="PROPAGATION_REQUIRED"
class="org.apache.camel.spring.spi.SpringTransactionPolicy">
		<property name="transactionManager" ref="jmsTransactionManager" />
	</bean>

Up until version 2.7.5 my redelivery is managed by the container (activeMq).
When I use version 2.8.0 and later redelivery is instantaniously and seems
to be managed by camel.

Do I need to change my route configuration to get container managed
redelivery?


--
View this message in context: http://camel.465427.n5.nabble.com/Container-managed-redelivery-tp5159934p5159934.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Container managed redelivery

Posted by anoordover <an...@live.nl>.
Solved!
Thanks!

--
View this message in context: http://camel.465427.n5.nabble.com/Container-managed-redelivery-tp5159934p5160555.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Container managed redelivery

Posted by kafe <er...@gmail.com>.
Can you try to add <property name="cacheLevelName" value="CACHE_CONSUMER" />
to your JMSComponent ?

--
View this message in context: http://camel.465427.n5.nabble.com/Container-managed-redelivery-tp5159934p5160336.html
Sent from the Camel - Users mailing list archive at Nabble.com.