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 2013/10/25 10:39:32 UTC
[jira] [Created] (CAMEL-6901) Intercept send to endpoint - Make it
easier to do AOP before|after|around
Claus Ibsen created CAMEL-6901:
----------------------------------
Summary: 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
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
(v6.1#6144)