...
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")) |
...