Propagate CXF Exceptions to Camel route

Solution Verified - Updated -


  • We want to propagate the cxf exceptions to the camel route so that we need to do some error handler Processing. There is not much documentation available for this scenario.
  • We have the following cxf endpoint bean configuration and the camel route. When an error happens in the cxf interceptors, we need to propagate the exceptions to the Camel route
<cxf:cxfEndpoint id="someID"

<camelContext xmlns="">
   <onException  useOriginalMessage="true">
        <bean ref="someBean" method="someMethod" ></bean>           
        <from uri="cxf:bean:someID?dataFormat=PAYLOAD"></from>
         <setExchangePattern pattern="InOnly"></setExchangePattern> 
          <to uri="{{inboudQueueName}}" ></to>                              
  • How to propagate the exceptions to the camel route , if any error happens in the cxf bus or interceptors?


  • Red Hat JBoss Fuse
    • 6.x
  • Apache CXF
  • Apache Camel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In