[ https://issues.apache.org/activemq/browse/CAMEL-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen reassigned CAMEL-1558: ---------------------------------- Assignee: Claus Ibsen > Add interceptor(Endpoint) to intercept exchanges being routed to a given > endpoint > --------------------------------------------------------------------------------- > > Key: CAMEL-1558 > URL: https://issues.apache.org/activemq/browse/CAMEL-1558 > Project: Apache Camel > Issue Type: New Feature > Components: camel-core > Affects Versions: 2.0-M1 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > > To be able to do detour when an exchange is about to be routed to the given > endpoint. > {code:java} > intercept("jms:queue:foo").to("file://backup").proceed(); > from("direct:foo").to("jms:queue:foo"); > {code} > So when an exchange is about to be routed to the *foo* queue it will be > intercepted and routed to the file where we will save a backup of it. > And since we use {{proceed}} the exchange will continue its original route at > the point of interception. > To stop the route we could have used {{stop()}} instead. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.