Versions Compared

Key

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

...

So the above example will reorder messages from endpoint direct:a in order of their bodies, to the endpoint mock:result.
Typically you'd use a header rather than the body to order things; or maybe a part of the body. So you could replace this expression with

Code Block
resequencer(header("JMSPrioritymySeqNo"))

for example to reorder messages using their JMS prioritya custom sequence number in the header mySeqNo.

You can of course use many different Expression languages such as XPath, XQuery, SQL or various Scripting Languages.

...

Code Block
resequence(header("JMSPrioritymySeqNo"), header("MyCustomerRating"))

...