camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-6901) Intercept send to endpoint - Make it easier to do AOP before|after|around
Date Fri, 25 Oct 2013 08:39:32 GMT
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)

Mime
View raw message