Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

How do I name my routes?

You can assign names to your routes in Java DSL using routeId

Code Block
java
java
from("direct:start").routeId("myRoute")
    .to(mock:bar);

And in Spring XML using the id attribute:

Code Block
xml
xml
<route id="myRoute">
    <from uri="direct:start"/>
    <to uri="mock:bar"/>
</route>