You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2009/04/22 15:27:32 UTC
[jira] Created: (CAMEL-1558) Add interceptor(Endpoint) to intercept
exchanges being routed to a given endpoint
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}
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.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-1558) Add interceptor(Endpoint) to
intercept exchanges being routed to a given endpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (CAMEL-1558) Add interceptor(Endpoint) to intercept
exchanges being routed to a given endpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-1558:
-------------------------------
Fix Version/s: 2.0.0
trunk: 768955
> 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
> Fix For: 2.0.0
>
>
> 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.
[jira] Updated: (CAMEL-1558) Add interceptor(Endpoint) to intercept
exchanges being routed to a given endpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (CAMEL-1558) Add interceptor(Endpoint) to
intercept exchanges being routed to a given endpoint
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1558.
--------------------------------
Resolution: Fixed
I renamed it to {{interceptSendToEndpoint}} to make it clear what the interceptor does.
See wiki
http://camel.apache.org/intercept.html
> 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
> Fix For: 2.0.0
>
>
> 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.