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 2019/07/28 08:33:00 UTC

[jira] [Resolved] (CAMEL-6901) Intercept send to endpoint - Make it easier to do AOP before|after|around

     [ https://issues.apache.org/jira/browse/CAMEL-6901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-6901.
--------------------------------
    Resolution: Won't Fix

You can use advicewith for testing and do all kind of before/after etc - lets avoid the DSL to get more complex

> Intercept send to endpoint - Make it easier to do AOP before|after|around
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-6901
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6901
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core, eip
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 3.0.0
>
>
> See
> http://camel.465427.n5.nabble.com/testing-intercept-route-and-process-after-its-completion-tp5714460.html
> We should consider some DSL improvements to this interceptor so you can more easy do what you want with
> - before
> - call | skip
> - after
> In a easier to use DSL syntax. Just need to avoid it becoming to verbose.
> Something a like:
> {code}
> interceptSendToEndpoint("jms:*)
>    .before().to("bean:audit")
>    .sendToEndpoint();
>    .after().to("bean:done").to("bean:moreStuff")
> .end()
> {code}
> And in XML
> {code:xml}
> <interceptSendToEndpoint uri="jms:*">
>    <before>
>    </before>
>    <sendToEndpoint/>
>    <after>
>      ...
>    </after>
> </interceptSendToEndpoint>
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)