You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by "mahii.in87" <ma...@wipro.com> on 2013/09/02 11:25:57 UTC
camel-exception-handler
Hi ,
How to handle target invocation exception in camel.The secnario is like this
.If the target in the jaxwsclient throws any invocation exception .The
exception hadler shoud handle the exception and update the database table
with sme error information.What change should i need to make in this below
code.
<route>
<from uri="cxf:bean:"/>
<to uri="jaxwsclient id"/>
<onException redeliveryPolicyRef="sapRedelivery">
<exception>java.lang.Exception</exception>
<to uri="errortable"/>
</onException>
</route>
--
View this message in context: http://camel.465427.n5.nabble.com/camel-exception-handler-tp5738496.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: camel-exception-handler
Posted by Christian Müller <ch...@gmail.com>.
Checkout [1].
A global scoped example:
<onException redeliveryPolicyRef="sapRedelivery">
<exception>java.lang.Exception</exception>
<to uri="..."/>
</onException>
<route>
<from uri="cxf:bean:..."/>
<to uri="..."/>
</route>
A route scoped example:
<route>
<from uri="cxf:bean:..."/>
<onException redeliveryPolicyRef="sapRedelivery">
<exception>java.lang.Exception</exception>
<to uri="..."/>
</onException>
<to uri="..."/>
</route>
[1] http://camel.apache.org/exception-clause.html
Best,
Christian
-----------------
Software Integration Specialist
Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html
https://www.linkedin.com/pub/christian-mueller/11/551/642
On Mon, Sep 2, 2013 at 11:25 AM, mahii.in87 <ma...@wipro.com> wrote:
> Hi ,
>
> How to handle target invocation exception in camel.The secnario is like
> this
> .If the target in the jaxwsclient throws any invocation exception .The
> exception hadler shoud handle the exception and update the database table
> with sme error information.What change should i need to make in this below
> code.
>
> <route>
> <from uri="cxf:bean:"/>
> <to uri="jaxwsclient id"/>
> <onException redeliveryPolicyRef="sapRedelivery">
>
> <exception>java.lang.Exception</exception>
> <to uri="errortable"/>
> </onException>
> </route>
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/camel-exception-handler-tp5738496.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>