[
https://issues.apache.org/activemq/browse/SM-1686?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Anstey updated SM-1686:
--------------------------------
Attachment: SM-1686-trunk.patch
Patch for
http://svn.apache.org/repos/asf/servicemix/components/engines/servicemix-camel/trunk/
Ignore the first patch for trunk. I didn't need to handle several different
versions of ServiceMix in the same component.
> smx-camel errorHandler w/handleFault="true" should consistently throw
> JBIFaultException and not CamelException when mep is robust-in-only
> -----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SM-1686
> URL: https://issues.apache.org/activemq/browse/SM-1686
> Project: ServiceMix
> Issue Type: Bug
> Components: servicemix-camel
> Affects Versions: servicemix-camel-2008.01
> Reporter: Ron Gavlin
> Attachments: SM-1686-32branch.patch, SM-1686-trunk.patch,
> SM-1686.patch
>
>
> See SM-1673 for test case that exposes the problem. Specifically, notice the
> extract below from file
> servicemix-camel/src/test/resources/org/apache/servicemix/camel/su9-src/camel-context.xml.
> The in-only message exchange fault is caught with exception
> org.apache.servicemix.jbi.FaultException while the robust-in-only message
> exchange fault is caught with exception org.apache.camel.CamelException. It
> would seem to make more sense for the same
> org.apache.servicemix.jbi.FaultException to be used in both cases.
> /Ron
> <camelContext xmlns="http://activemq.apache.org/camel/schema/spring">
> <route errorHandlerRef="deadLetterErrorHandler">
> <from uri="jbi:service:urn:test:fault-handled-true"/>
> <onException>
> <!-- Catch exception from in-only message exchange -->
> <exception>org.apache.servicemix.jbi.FaultException</exception>
> <redeliveryPolicy maximumRedeliveries="0"/>
> <handled>
> <constant>true</constant>
> </handled>
> <to uri="jbi:service:urn:test:receiver-service"/>
> </onException>
> <onException>
> <!-- Catch exception from robust-in-only message exchange -->
> <exception>org.apache.camel.CamelException</exception>
> <redeliveryPolicy maximumRedeliveries="0"/>
> <handled>
> <constant>true</constant>
> </handled>
> <to uri="jbi:service:urn:test:receiver-service"/>
> </onException>
> <interceptor ref="handleFaultProcessor">
> <to uri="jbi:service:urn:test:faulty-service"/>
> </interceptor>
> </route>
> </camelContext>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.