You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by rgavlin <rg...@yahoo.com> on 2008/10/28 16:48:08 UTC
How to configure ErrorHandler & in Spring DSL
I would like to configure a DeadLetterChannel ErrorHandler that handles both
exceptions and faults. The ExceptionClause documentation provides a nice
Spring DSL example. However, I have not found similar documentation
describing how faults should be handled using Spring DSL. Would it be
possible to provide a simple example?
I took a look at
http://fisheye6.atlassian.com/browse/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringFaultRouteTest.java?r=659491
but unfortunately it appears to currently be a work-in-progress.
Thanks for your assistance.
/Ron
--
View this message in context: http://www.nabble.com/How-to-configure-ErrorHandler---%3ChandleFault%3E-in-Spring-DSL-tp20209640s22882p20209640.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: How to configure ErrorHandler & in Spring DSL
Posted by rgavlin <rg...@yahoo.com>.
Hi Gert,
Thanks for making this happen!
I posted my feedback regarding the currently available "handleFault"
functionality in Camel as part of SMX-Camel issue SM-1665. Here is a link to
my post for interested camel folks:
https://issues.apache.org/activemq/browse/SM-1665?focusedCommentId=46874#action_46874.
Any feedback is appreciated.
/Ron
Gert Vanthienen wrote:
>
> Ron,
>
> I just re-enabled this test this afternoon. Unfortunately, the
> <handleFault/> needs some minor improvements, but you can already define
> this with an <interceptor/> as is shown in
> http://svn.eu.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/faultRoute.xml?view=markup.
>
> Regards,
>
> Gert
>
> rgavlin wrote:
>> I would like to configure a DeadLetterChannel ErrorHandler that handles
>> both
>> exceptions and faults. The ExceptionClause documentation provides a nice
>> Spring DSL example. However, I have not found similar documentation
>> describing how faults should be handled using Spring DSL. Would it be
>> possible to provide a simple example?
>>
>> I took a look at
>> http://fisheye6.atlassian.com/browse/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringFaultRouteTest.java?r=659491
>> but unfortunately it appears to currently be a work-in-progress.
>>
>> Thanks for your assistance.
>>
>> /Ron
>>
>
>
>
> -----
> ---
> Gert Vanthienen
> http://gertvanthienen.blogspot.com
>
--
View this message in context: http://www.nabble.com/How-to-configure-ErrorHandler---%3ChandleFault%3E-in-Spring-DSL-tp20209640s22882p20223925.html
Sent from the Camel - Users mailing list archive at Nabble.com.
RE: How to configure ErrorHandler & in Spring DSL
Posted by Claus Ibsen <ci...@silverbullet.dk>.
Hi
Gert could you create a ticket in JIRA with the issues missing in handleFault so we don't forget it?
Med venlig hilsen
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be]
Sent: 28. oktober 2008 19:54
To: camel-user@activemq.apache.org
Subject: Re: How to configure ErrorHandler & <handleFault> in Spring DSL
Ron,
I just re-enabled this test this afternoon. Unfortunately, the
<handleFault/> needs some minor improvements, but you can already define
this with an <interceptor/> as is shown in
http://svn.eu.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/faultRoute.xml?view=markup.
Regards,
Gert
rgavlin wrote:
> I would like to configure a DeadLetterChannel ErrorHandler that handles both
> exceptions and faults. The ExceptionClause documentation provides a nice
> Spring DSL example. However, I have not found similar documentation
> describing how faults should be handled using Spring DSL. Would it be
> possible to provide a simple example?
>
> I took a look at
> http://fisheye6.atlassian.com/browse/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringFaultRouteTest.java?r=659491
> but unfortunately it appears to currently be a work-in-progress.
>
> Thanks for your assistance.
>
> /Ron
>
Re: How to configure ErrorHandler & in Spring DSL
Posted by Gert Vanthienen <ge...@skynet.be>.
Ron,
I just re-enabled this test this afternoon. Unfortunately, the
<handleFault/> needs some minor improvements, but you can already define
this with an <interceptor/> as is shown in
http://svn.eu.apache.org/viewvc/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/faultRoute.xml?view=markup.
Regards,
Gert
rgavlin wrote:
> I would like to configure a DeadLetterChannel ErrorHandler that handles both
> exceptions and faults. The ExceptionClause documentation provides a nice
> Spring DSL example. However, I have not found similar documentation
> describing how faults should be handled using Spring DSL. Would it be
> possible to provide a simple example?
>
> I took a look at
> http://fisheye6.atlassian.com/browse/activemq/camel/trunk/components/camel-spring/src/test/java/org/apache/camel/spring/processor/SpringFaultRouteTest.java?r=659491
> but unfortunately it appears to currently be a work-in-progress.
>
> Thanks for your assistance.
>
> /Ron
>