camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmland <qiancheng...@gmail.com>
Subject onException problem
Date Thu, 23 Feb 2012 07:53:46 GMT
I use the globel OnException to catch exception , and before deliver to the
DLQ,I use a process.my problem is that :
     when the process occur a exception, the route roll back.the message
route ,and roll back again... It has been circulating.  
cxf version 2.6.0,
my xml configuration like this:
		<camel:onException useOriginalMessage="true"  >
			<camel:exception>java.lang.Exception</camel:exception>
			<camel:redeliveryPolicy maximumRedeliveries="2"/>
			<camel:handled><camel:constant>true</camel:constant></camel:handled>
			<camel:process ref="myProcess"></camel:process>
			<camel:to uri="ESBMQ:DEAD?disableReplyTo=true"  ></camel:to>
		</camel:onException>

		<camel:route   >
			<camel:from uri="ESBMQ:FROM?disableReplyTo=true"></camel:from>
			<camel:transacted></camel:transacted>
			<camel:process ref="conver"></camel:process>
			<camel:to uri="ESBMQ:TO?disableReplyTo=true"></camel:to>
		</camel:route>

--
View this message in context: http://camel.465427.n5.nabble.com/onException-problem-tp5507295p5507295.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message