3 Replies Latest reply on Mar 22, 2011 5:28 AM by vvalouch

    Camel Aggregator

    vvalouch

      Hi,

       

      I have probably silly question but please see the camelContext and question below:

       

            

                      <to uri="file://c:/temp/aggregated?fileName=$-$-message.xml"/>

                  </aggregate>

                </route>

           </camelContext>

       

       

       

       

       

      And the question How can I make it so that I will aggregate according to more than one criteria? For example if I know that projectNumber message can have two states: create or delete...

       

      thanks for any hint,

      Vlad

        • 1. Re: Camel Aggregator
          mielket

          Hi Vlad,

           

          On the completion question. From the Camel Aggregator documentation:

           

          And you can combine them in any way your like. Its basically the first which triggers that wins. So you can use a completion size together with a completion timeout. Only completionTimeout and completionInterval cannot be used at the same time.

           

           

          Some additional notes on using the Aggregator: http://tmielke.blogspot.com/2009/01/using-camel-aggregator-correctly.html

           

          Edited by: tmielke on Mar 22, 2011 8:31 AM

          • 2. Re: Camel Aggregator
            vvalouch

            Hi,

             

            thanks for link. I found interesting information which I will try to use further but unfortunately I didn't find out answer for my problem. Please see the input message:

             

             

            • 3. Re: Camel Aggregator
              vvalouch

              I found a solution which I didn't saw when  I was reading the blog the first time.

              I solved it this way:

               

               

               

               

              Edited by: vvalouch on Mar 22, 2011 9:13 AM

               

              Edited by: vvalouch on Mar 22, 2011 9:22 AM

               

              Edited by: vvalouch on Mar 22, 2011 9:27 AM