Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-1155

Multiple expressions are in fact not allowed in Resequencer

XMLWordPrintable

    • Icon: Documentation Documentation
    • Resolution: Done
    • Icon: Minor Minor
    • jboss-fuse-6.0
    • None
    • None
    • % %

      Regarding the Resequencer component, the documentation Implementing Enterprise Integration Patterns says that:

      You can also use multiple expressions to sort messages in a batch. For example, if you want to sort incoming messages, first, according to their JMS priority (as recorded in the JMSPriority header) and second, according to the value of their time stamp (as recorded in the TimeStamp header), you can define a route like the following:

      from("direct:start").resequence(header("JMSPriority"), header("TimeStamp")).to("mock:result");
      

      In this case, messages with the highest priority (that is, low JMS priority number) are moved to the front of the batch. If more than one message has the highest priority, the highest priority messages are put in order according to the value of the TimeStamp header.

      However, multiple expressions are disabled since Camel 2.7.0 due to CAMEL-3696. So drop the above block from the documentation so that users won't be confused.

            fbolton@redhat.com Fintan Bolton (Inactive)
            rhn-support-tasato Tadayoshi Sato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: