On 30 September 2012 11:57, Claus Ibsen wrote:
>> [0]: https://issues.apache.org/jira/browse/CAMEL-5456
>>
>
> I finally got some time to help with this, and have fixed the issue reported.
>
> I also updated the error handler docs to better reflect the scopes for
> Java DSL vs XML DSLs.
> http://c
On Thu, Sep 13, 2012 at 11:34 AM, Andreas Jacobsen
wrote:
> That doesn't match my experiences. I've stepped through the
> DefaultExceptionPolicyStrategy and global scope is definitely global
> in Java DSL routebuilders too. I wish the documentation were more
> clear on what the expected behavior s
That doesn't match my experiences. I've stepped through the
DefaultExceptionPolicyStrategy and global scope is definitely global
in Java DSL routebuilders too. I wish the documentation were more
clear on what the expected behavior should be.
I've created CAMEL-5456[0] because I thought it was mean
Hi,
the "global" scope mentioned here
http://camel.apache.org/exception-clause.html in this case actually means
"route builder" scope.
For example the rule for ValidationException will trigger for both routes
in the same route builder (at least with the Camel version 2.6.x with which
I did the tes
My understanding is that exception policies defined in global scope
are actually global. You could set up a seperate routebuilder
specifically for the global exception policies.
Claus's suggestion works too, since the same exception policies will
be created several times.
On 11 September 2012 16:
Alright thanks.
But then global scope doesn't really means global to the camelcontext. Its
global to the routes currently being defined.
Thanks for your help
--
View this message in context:
http://camel.465427.n5.nabble.com/Global-exception-policy-across-Route-builder-configure-methods-tp57190
Hi
You can create a base class, and setup those onException in the
configure method. And the in sub classes, call super.configure()
first.
On Tue, Sep 11, 2012 at 6:04 AM, vishal1981
wrote:
> Hi,
> If I understand correctly, the onException() defined in the configure method
> of a Routebuilder