I don't know if this will work for you (cause it depends on the camel version
you are using).
In my case it works with a context like:

     <!--ActiveMQ Component -->
    <bean id="activemq"
class="org.apache.activemq.camel.component.ActiveMQComponent">
        <property name="connectionFactory" ref="connectionFactory"/>
        <!-- define the jms consumer/producer as transacted -->
        <property name="transacted" value="true"/>
        <!-- setup the transaction manager to use -->
        <!-- if not provided then Camel will automatic use a
JmsTransactionManager, however if you
         for instance use a JTA transaction manager then you must configure
it -->
        <property name="transactionManager" ref="jmsTransactionManager"/>
    </bean>

    <!-- JMS TX manager -->
    <bean id="jmsTransactionManager"
class="org.springframework.jms.connection.JmsTransactionManager">
        <property name="connectionFactory" ref="connectionFactory"/>
    </bean>

<route> 
    <from uri="jms:${queue}"/> 
    <transacted/>
    <to uri="nmr:Webservice"/> 
</route> 

Note: that I do not declare redeliveryPolicy myself is I am using the one
configured in my resource adapter. But I don't think that if you do it will
be an issue.

Hope that helps.

-----
Ioannis Canellos
-- 
View this message in context: 
http://old.nabble.com/Message-Acknowledgement---Persistence-in-Camel-Application-tp28240625p28246431.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to