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

recipientList stop if the second endpoint throw exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Bug
    • Affects Version/s: 2.16.2
    • Fix Version/s: 2.16.3, 2.17.1, 2.18.0
    • Component/s: camel-core
    • Labels:
      None

      Description

      this code is ok and do the agregate :

      from("direct:rlAggregate")
      .process(new Processor()

      { String destinations = "bean:throwingExceptionConsumerB, bean:consumerC";}

      })
      .recipientList(header("destinations"), ",").parallelProcessing().aggregationStrategy(agg);

      an this one not :

      from("direct:rlAggregate")
      .process(new Processor()

      { String destinations = "bean:consumerC, bean:throwingExceptionConsumerB";}

      })
      .recipientList(header("destinations"), ",").parallelProcessing().aggregationStrategy(agg);

      it's throwing :

      org.apache.camel.CamelExecutionException: Exception occurred during execution on the exchange

      they should have the same results. And only the option stopOnException should allow to stop when an Exception rise.

        Attachments

        1. recipientList.rar
          23 kB
          courtin
        2. recipientList.zip
          32 kB
          courtin

          Activity

            People

            • Assignee:
              trohovsky Tomas Rohovsky
              Reporter:
              nuskhu courtin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: