camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From salemi <sal...@avaya.com>
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?

Thanks,
Ali

<route id="gigaspacesInterface" 
shutdownRunningTask="CompleteCurrentTaskOnly" autoStartup="true">
 
            <from uri="direct:gigaspacesInterface"/>           
   	     <to uri="bean:gsInterface?method=write"/>
 	      <onException inheritErrorHandler="false" useOriginalMessage="true">
  	    		<exception>org.springframework.dao.DataAccessException</exception>
	    		<redeliveryPolicy maximumRedeliveries="3" redeliveryDelay="1000"
logRetryAttempted="true" retryAttemptedLogLevel="DEBUG"/>
	    		<handled><constant>true</constant></handled>
	  	    	<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"
/>
            </onException>
            
            <log loggingLevel="INFO" message="gigaspacesInterface route
writes into GS: ${body}\n"/>
        </route>



-----
Alireza Salemi
--
View this message in context: http://camel.465427.n5.nabble.com/Exception-doesn-t-get-cauhgt-in-the-route-tp5733381.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message