You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Francois Lefoll <fr...@racinegroup.com> on 2010/06/17 17:45:49 UTC

Error handling in XML/Spring notation

Hi,

I tried most of possible configurations provided on documentation, but
didn't get any successful ones.
(my targets versions are camel 2.3.0 and 2.2.0)

Let's suppose I got a unique simple route :
<route id="myRoute" >
    <from uri="activemq:queueA"/>
    <to uri="file:somewhere"/>
</route>

what would be the full applicationContext.xml
to send the original message to an other queue in case of any error ? (for
example, "somewhere is not writable" "somewhere doesn't exist", and so)

Thanks in advance,

Francois
-- 
View this message in context: http://camel.465427.n5.nabble.com/Error-handling-in-XML-Spring-notation-tp509968p509968.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Error handling in XML/Spring notation

Posted by Willem Jiang <wi...@gmail.com>.
Hi,

You can take a look at the wiki page of Camel about the ErrorHandler[1]

[1]http://camel.apache.org/error-handler.html

Willem
Francois Lefoll wrote:
> Hi,
> 
> I tried most of possible configurations provided on documentation, but
> didn't get any successful ones.
> (my targets versions are camel 2.3.0 and 2.2.0)
> 
> Let's suppose I got a unique simple route :
> <route id="myRoute" >
>     <from uri="activemq:queueA"/>
>     <to uri="file:somewhere"/>
> </route>
> 
> what would be the full applicationContext.xml
> to send the original message to an other queue in case of any error ? (for
> example, "somewhere is not writable" "somewhere doesn't exist", and so)
> 
> Thanks in advance,
> 
> Francois