[ 
https://issues.apache.org/jira/browse/CAMEL-16757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17375360#comment-17375360
 ] 

Claus Ibsen commented on CAMEL-16757:
-------------------------------------

Working on this. This will be generic for the DSL (also Java) so we can 
configure this the same way in all DSLs.
Currently you could only in Java DSL have a base class with global error 
handling. And in XML it was only the old spring and blueprint xml that has this 
specially.

The idea is that you can have a RouteBuilder (or some new class) for this kind 
of global configuration, that Camel then discover like any other routes (via 
route collector).
This also allows to define global error handler and whatnot in Java code, and 
then users can use XML to define routes, eg as some users may not be savy Java 
coders.
Also you can have global error handling etc in a JAR that you just add as a 
dependency.

> camel-core - yaml and xml dsl - Allow to define global error handling
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-16757
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16757
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.12.0
>
>
> In the legacy camel-spring-xml and camel-blueprint you have <camelContext> 
> where you can setup global error handlers, interceptors etc
> In the microservice world we may want to look at allowing to have a 
> <camelConfiguration> or some other name, where you can drop that as a file 
> into the routes loader to setup global error handling, and so on.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to