camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CAMEL-1558) Add interceptor(Endpoint) to intercept exchanges being routed to a given endpoint
Date Wed, 22 Apr 2009 13:27:32 GMT

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

Claus Ibsen updated CAMEL-1558:
-------------------------------

    Description: 
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.

  was:
To be able to do detour when an exchange is about to be routed to the given endpoint.

{code:java}
  interceptor("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.


> 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
>
> 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.


Mime
View raw message