Versions Compared

Key

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

...

In this example we want to replace a message body with a claim check, and restore the body at a later step.

Using the Fluent Builders

Wiki Markup
{snippet:id=e1|lang=java|url=camel/trunk/camel-core/src/test/java/org/apache/camel/processor/ClaimCheckTest.java}

Using the Spring XML Extensions

Code Block
xml
xml


<route>
    <from uri="direct:start"/>
    <pipeline>
        <to uri="bean:checkLuggage"/>
        <to uri="mock:testCheckpoint"/>
        <to uri="bean:dataEnricher"/>
        <to uri="mock:result"/>
    </pipeline>
</route>

The example route is pretty simple - its just a Pipeline. In a real application you would have some other steps where the mock:testCheckpoint endpoint is in the example.

...