Hi

It should really work as we got a ton of unit tests in relation to
error handling.

Could you post your spring xml file with the camel context and routes
that you cannot get working?


On Wed, Aug 26, 2009 at 11:02 AM, Bach
Christian<[email protected]> wrote:
> Heya guys
>
> I am trying to install a global error handler by setting :
>
> <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring";
> errorHandlerRef="deadLetterErrorHandler">
>
> in the camelContext, according to
> http://camel.apache.org/error-handler.html the error handler is expected
> to be inherited and being applicable in all the routes, ya ?
>
> But it is not, when inspecting stack traces I see the
> DefaultErrorHandler still being applied in all my routes. When
> configuring individual routes, like:
>
> <route errorHandlerRef="deadLetterErrorHandler">
>
> things are working nicely and my stack traces for the particular route
> do have the DeadLetterChannel installed.
>
> I must be doing something wrong in my attempt of globally configuring
> matter. The Camel version used is 2.0.0 and the deadLetterErrorHandler
> is configured like this:
>
> <bean id="deadLetterErrorHandler"
> class="org.apache.camel.builder.DeadLetterChannelBuilder">
>        <property name="deadLetterUri" value="seda:deadletterQueue"/>
>        <property name="handled" value="false" />
> </bean>
>
> Any help appreciated, thx, Christian.
>
> This message is for the named person's use only. It may contain confidential, 
> proprietary or legally privileged information. If you receive this message in 
> error, please notify the sender urgently and then immediately delete the 
> message and any copies of it from your system. Please also immediately 
> destroy any hardcopies of the message.
> The sender's company reserves the right to monitor all e-mail communications 
> through their networks.
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to