You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2022/09/02 08:36:00 UTC

[jira] [Commented] (CAMEL-3870) Add support for setting onException, interceptors etc in routeContext (reusable onexceptions)

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

Claus Ibsen commented on CAMEL-3870:
------------------------------------

You can use route configuration
https://camel.apache.org/manual/route-configuration.html

> Add support for setting onException, interceptors etc in routeContext (reusable onexceptions)
> ---------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-3870
>                 URL: https://issues.apache.org/jira/browse/CAMEL-3870
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, camel-spring
>            Reporter: Kris De Schutter
>            Priority: Major
>             Fix For: 3.x
>
>
> Cfr. http://camel.465427.n5.nabble.com/reusable-onexceptions-td4304909.html
> I can reuse route definitions by putting them in a <routeContext> and then referring to them. I would like to do the same with <onException> definitions.
> The context I'm working in is one where we define routes by composing reusable route definitions. This works well, but I find that we have to duplicate the more general <onException> handlers. I was hoping that I could reuse their definitions as well. 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)