Versions Compared

Key

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

...

Then the messages routed to the jms:queue:order:failed is the original input. If we want to manually retry we can move the JMS message from the failed to the input queue, with no problem as the message is the same as the original we received.

useOriginalBody with Spring DSL

The useOriginalBody option is defined as a boolean attribute on the <onException> XML tag in Spring DSL. So the definition above would be:

Code Block
xml
xml

    <onException useOriginalBody="true">
        <exception>com.mycompany.MyOrderException</exception>
        <handled><constant>true</constant></handled>
        <to uri="jms:queue:order:failed"/>
    </onException>

Advanced Usage of Exception Clause

...