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 23:05:02 UTC
[jira] Issue Comment Edited: (CAMEL-460) Add spring unit tests for
the intercept() feature
[ https://issues.apache.org/activemq/browse/CAMEL-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43599#action_43599 ]
hadrian edited comment on CAMEL-460 at 6/19/08 2:03 PM:
----------------------------------------------------------------
Jon, that is correct, but that's not what the example above suggested. intercept() is not a route and hence the intercept() in the snipped below:
{code}
intercept().to("log:foo").proceed();
from(foo:bar1).to(foo:bar2);
from(foo:bar2).to(foo:bar3);
{code}
would not translate into:
{code}
<route>
<intercept>
[...]
</intercept>
</route>
{code}
Something like this may better reflect the requirement:
{code}
<camelContext>
<intercept>
<to uri="log:foo"/>
<proceed/>
</intercept>
<route>
<from uri="foo:bar1"/>
<to uri="foo:bar2"/>
</route>
<route>
<from uri="foo:bar2"/>
<to uri="foo:bar3"/>
</route>
</camelContext>
{code}
Note: the <proceed> will disappear after i'm done with camel-481.
Willem said it right in a mail, we have to figure out how to model RoutesType in the xml dsl.
was (Author: hadrian):
Jon, that is correct, but that's not what the example above suggested. intercept() is not a route and hence the intercept() in the snipped below:
{code}
intercept().to("log:foo").proceed();
from(foo:bar1).to(foo:bar2);
from(foo:bar2).to(foo:bar3);
{code}
would not translate into:
{code}
<route>
<intercept>
[...]
</intercept>
</route>
{code}
Something like this may better reflect the requirement:
<camelContext>
<intercept>
<to uri="log:foo"/>
<proceed/>
</intercept>
<route>
<from uri="foo:bar1"/>
<to uri="foo:bar2"/>
</route>
<route>
<from uri="foo:bar2"/>
<to uri="foo:bar3"/>
</route>
</camelContext>
{code}
Note: the <proceed> will disappear after i'm done with camel-481. Willem said it right in a mail, we have to figure out how to model RoutesType in the xml dsl.
> Add spring unit tests for the intercept() feature
> -------------------------------------------------
>
> Key: CAMEL-460
> URL: https://issues.apache.org/activemq/browse/CAMEL-460
> Project: Apache Camel
> Issue Type: Test
> Components: camel-spring
> Affects Versions: 1.3.0
> Reporter: Jonathan Anstey
> Assignee: Willem Jiang
> Fix For: 1.5.0
>
> Attachments: camel-460.patch
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.