You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Hadrian Zbarcea (JIRA)" <ji...@apache.org> on 2008/06/19 04:44:00 UTC
[jira] Commented: (CAMEL-481) Interceptors to proceed by default
[ https://issues.apache.org/activemq/browse/CAMEL-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43571#action_43571 ]
Hadrian Zbarcea commented on CAMEL-481:
---------------------------------------
I think my proposal above is not very good because of the intercept(Predicate predicate) flavor. I think a stop() would be more appropriate.
One more aspect. In the following scenario, what would be the expected default behavior assuming an implicit proceed?
{code}
intercept(header("foo").isEqualTo("bar")).to("mock:b");
from("direct:start").to("mock:a");
{code}
Clearly the "mock:b" endpoint will only receive the message if header("foo") equals "bar", but what about "mock:a", should it be invoked anyway, or only if the predicate didn't fire? My mild preference would be to only invoke "mock:a" if the predicate did not fire.
> Interceptors to proceed by default
> ----------------------------------
>
> Key: CAMEL-481
> URL: https://issues.apache.org/activemq/browse/CAMEL-481
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 1.3.0
> Reporter: Hadrian Zbarcea
> Assignee: Hadrian Zbarcea
> Fix For: 1.4.0
>
>
> intercept().to(...) should proceed by default, without and explicit .proceed(). To stop processing after intercept use the following syntax:
> intercept(false).to(intercept-endpoint)
> View nabble thread:
> http://www.nabble.com/interceptors---something-is-terrible-wrong-td16661322s22882.html#a16661322
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.