camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From salemi <>
Subject Exception doesn't get cauhgt in the route
Date Tue, 28 May 2013 23:13:51 GMT
Hi All,

we throw an exception in the gsInterface bean but the exception never get
caught by the onException clause in the route below.

What am I doing wrong here?


<route id="gigaspacesInterface" 
shutdownRunningTask="CompleteCurrentTaskOnly" autoStartup="true">
            <from uri="direct:gigaspacesInterface"/>           
   	     <to uri="bean:gsInterface?method=write"/>
 	      <onException inheritErrorHandler="false" useOriginalMessage="true">
	    		<redeliveryPolicy maximumRedeliveries="3" redeliveryDelay="1000"
logRetryAttempted="true" retryAttemptedLogLevel="DEBUG"/>
	  	    	<marshal ref="ccisJSON" />
	  	    	<log loggingLevel="INFO" message="  #### FROM ROUTE: An Exception
is caught  ####  ${body}"></log>
	  	    	<to uri="file:/tmp/APCBadMsgs?fileName=badMsgs&amp;autoCreate=true"
            <log loggingLevel="INFO" message="gigaspacesInterface route
writes into GS: ${body}\n"/>

Alireza Salemi
View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message