Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-348

Camel Service Engine Component not handling error from Camel processing

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.1, 3.2.2
    • Component/s: servicemix-camel
    • Labels:
      None
    • Environment:

      ServiceMix 3.2.1
      ServiceMix-Camel 3.2.2-SNAPSHOT
      Camel 1.4-SNAPSHOT

      Description

      When an exception occured in camel processor, the message exchange is sent back to the NMR without taking care of its failed status.
      ServiceMix MessageExchange ends in Done status instead of Error.

      The probably incorrect code is in CamelJbiEndpoint.handleActiveProviderExchange() :
      After calling "camelProcessor.process(camelExchange);", the method sould have a look at camelExchange.isFailed()
      and filling exchange with correct status and exception before calling "send(exchange);".

      http://svn.apache.org/repos/asf/servicemix/components/engines/servicemix-camel/trunk/src/main/java/org/apache/servicemix/camel/CamelJbiEndpoint.java

        Attachments

          Activity

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              mektoub Manuel EVENO
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: