Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-7555

ZipAggregationStrategy does not preserve properties

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.13.1
    • None
    • None
    • None
    • Unknown

    Description

      ZipAggregationStrategy does not preserve properties:

      public class MyRouteBuilder extends RouteBuilder {
          @Override
          public void configure() {
              from("file:zipper/in?include=.*.xml&noop=true")
                  .process(new Processor() {
                      @Override
                      public void process(final Exchange exchange) throws Exception {
                          exchange.setProperty("myProperty", "myValue");
                      }
                  })
                  .aggregate(new ZipAggregationStrategy())
                  .constant(true)
                  .completionFromBatchConsumer()
                  .eagerCheckCompletion()
                  .log("myProperty = ${property.myProperty}")
                  .to("file:zipper/out");
          }
      }
      

      This logs:

      myProperty =

      Instead it should log:

      myProperty = myValue

      See http://stackoverflow.com/questions/24473035/how-to-access-calling-exchange-with-camels-zipaggregationstrategy

      Attachments

        Issue Links

          Activity

            People

              njiang Willem Jiang
              Peter Keller Peter Keller
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: