camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From duclad <>
Subject onException ignored when using Spring DSL
Date Fri, 12 Oct 2012 15:24:37 GMT

Please help me on this until I go nuts: I have a camel context created using
Spring DSL with some routes define inside. I want that in the case one of
the routes throws an exception all things to stop and the message to be
routed to a special endpoint. 
Here, let me show you:

<camelContext errorHandlerRef="noErrorHandler" id="contextId"
   <propertyPlaceholder id="properties"	location="ref:propConf" />
	<redeliveryPolicy maximumRedeliveries="0" />
	<to uri="vm:trash"/>
   <route id="trash">
      <from uri="vm:trash"/>
   <route id="A">
      <from uri="file//input"/>
      <to uri="vm:xmlFilesListener/>
   <route id="B">
      <from uri="vm:xmlFilesListener"/>
      <process ref="processorThatThrowsException"/>
      <to uri="vm:applicationEntryPoint"/>
   <route id="C">
      <from uri="vm:applicationEntryPoint"/>
      <process ref="processorThatEatsResources/>
      <to uri="file://output">

Nevertheless, it seems that the onException is completely ignored and I
tried all the possible combinations. :(

Thank you so much guys, 

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

View raw message