You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by sunny <ra...@gmail.com> on 2015/03/02 18:13:47 UTC

onException common to Java DSL and XML DSL

Hello Pals,

I am working on a requirement where in some code of camel is in Java DSL and
some code is in XML DSL . 
>From documentation I understand that if I have a onException in Java DSL at
global scope, then this onException will be available for all routes in Java
DSL only and will not be available for XML DSL .
Functionality dosent work even when i have Java in XML dsl alone.

To satisfy my requirement i had to write onException in both of my XML DSL
and Java DSL file. 
is there any way by which i can have onException common to both Java and XML
DSL ? 




--
View this message in context: http://camel.465427.n5.nabble.com/onException-common-to-Java-DSL-and-XML-DSL-tp5763413.html
Sent from the Camel Development mailing list archive at Nabble.com.

Re: onException common to Java DSL and XML DSL

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Please use the @user mailing list or the Camel user forum on nabble
for these kind of questions.

On Mon, Mar 2, 2015 at 6:13 PM, sunny <ra...@gmail.com> wrote:
> Hello Pals,
>
> I am working on a requirement where in some code of camel is in Java DSL and
> some code is in XML DSL .
> From documentation I understand that if I have a onException in Java DSL at
> global scope, then this onException will be available for all routes in Java
> DSL only and will not be available for XML DSL .
> Functionality dosent work even when i have Java in XML dsl alone.
>
> To satisfy my requirement i had to write onException in both of my XML DSL
> and Java DSL file.
> is there any way by which i can have onException common to both Java and XML
> DSL ?
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/onException-common-to-Java-DSL-and-XML-DSL-tp5763413.html
> Sent from the Camel Development mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/