Container managed redelivery

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Container managed redelivery

anoordover
This post was updated on .
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?

More or less a duplicate of http://camel.465427.n5.nabble.com/Redelivery-with-multiple-transacted-routes-tp5158209p5158209.html
Reply | Threaded
Open this post in threaded view
|

Re: Container managed redelivery

kafe
Can you try to add <property name="cacheLevelName" value="CACHE_CONSUMER" /> to your JMSComponent ?
Reply | Threaded
Open this post in threaded view
|

Re: Container managed redelivery

anoordover
Solved!
Thanks!