Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagexml
<route>
    <from uri="activemq:order"/>
    <bean ref="buildInvoiceBean" method="createInvoice"/>
    <to uri="activemq:invoice"/>
</route>

Using Processor in XML DSL:

We can incorporate the use of a processor to perform more involved consumption, processing, and translation tasks on a message:

Code Block
languagexml
<route>
    <from uri="activemq:order"/>
    <process ref="orderInvoiceProcessor"/>
    <to uri="activemq:invoice"/>
</route>