Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added example Spring DSL (for CAMEL-3557)

...

From 2.0 onwards on Camel you can specify the Exchange Pattern using the dsl.

Using the Fluent Builders

Code Block
from("mq:someQueue").
  inOnly().
  bean(Foo.class);

...

Code Block
from("mq:someQueue").
  inOnly("mq:AnotherQueueanotherQueue");

Using the Spring XML Extensions

Code Block

<route>
    <from uri="mq:someQueue"/>
    <inOnly uri="bean:foo"/>
</route>
Code Block

<route>
    <from uri="mq:someQueue"/>
    <inOnly uri="mq:anotherQueue"/>
</route>
Include Page
CAMEL:Using This Pattern
CAMEL:Using This Pattern