[ 
https://issues.apache.org/activemq/browse/CAMEL-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43577#action_43577
 ] 

Jonathan Anstey commented on CAMEL-460:
---------------------------------------

Thanks Hadrian for the insight into this problem. I thought though that a 
statement in the Java DSL would map to a route. So, this

{code}
from(foo:bar1).to(foo:bar2);
from(foo:bar2).to(foo:bar3);
{code}

would be equivalent to

{code}
<route>
  <from uri="foo:bar1"/>
  <to uri="foo:bar2"/>
</route>
<route>
  <from uri="foo:bar2"/>
  <to uri="foo:bar3"/>
</route>
{code}

Is this incorrect?

Anyways, it would make sense to have a intercept feature at a higher level up, 
+1 to your idea.

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

Reply via email to