Hi, Rollback of transactions all the way back to the Queue happens only if the ActiveMQ consumer/producer that write to the queue/topic use a Transacted session in ActiveMQ.
When you create a connection factory, you need to set a Transaction Manager and a associated a Transaction against the JMS consumer. When the JMS consumer picks up the message and the session is transacted, then in case of failure to perform the route and in case of exception the message will reappear on the queue from where the consumer picked up the message... Please find a working spring sample of how to create a transactional JMS Ccomponent below https://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/test/resources/org/apache/camel/component/jms/tx/AbstractTransactionTest.xml?view=co&content-type=text%2Fplain https://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/test/resources/org/apache/camel/component/jms/tx/AbstractTransactionTest.xml?view=co&content-type=text%2Fplain (Note that there are 2 configurations shown) in the link above. As for then using the transactional JMS component, please find a working transactional camel route below https://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/test/resources/org/apache/camel/component/jms/tx/XMLQueueToProcessorTransactionTest.xml?view=co&content-type=text%2Fplain https://svn.apache.org/viewvc/camel/trunk/components/camel-jms/src/test/resources/org/apache/camel/component/jms/tx/XMLQueueToProcessorTransactionTest.xml?view=co&content-type=text%2Fplain Cheers, Ashwin... ----- --------------------------------------------------------- Ashwin Karpe Apache Camel Committer & Sr Principal Consultant FUSESource (a Progress Software Corporation subsidiary) http://fusesource.com Blog: http://opensourceknowledge.blogspot.com --------------------------------------------------------- -- View this message in context: http://camel.465427.n5.nabble.com/Camel-JMS-re-delivery-on-failure-tp4601191p4604046.html Sent from the Camel - Users mailing list archive at Nabble.com.