Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6901

Intercept send to endpoint - Make it easier to do AOP before|after|around

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0.RC1, 3.0.0
    • camel-core, eip
    • None
    • Unknown

    Description

      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:

      interceptSendToEndpoint("jms:*)
         .before().to("bean:audit")
         .sendToEndpoint();
         .after().to("bean:done").to("bean:moreStuff")
      .end()
      

      And in XML

      <interceptSendToEndpoint uri="jms:*">
         <before>
         </before>
         <sendToEndpoint/>
         <after>
           ...
         </after>
      </interceptSendToEndpoint>
      

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              davsclaus Claus Ibsen
              Votes:
              5 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: