How to hand CXF Fault in camel

Solution In Progress - Updated -

Issue

I have a camel-cxf route and onExpection clause fails to handle CXF Fault as it is not a java.lang.Exception type. In my use case when the web server is unavailable , camel throws a warning saying "org.apache.cxf.interceptor.Fault".

How to handle the CXF Fault in camel? My requirement is to handle all the exception scenarios and trigger a mail when an exception occurs. Since the camel is throwing falut I am unable to handle it .

Is there a way to handle CXF Fault in camel?

Environment

  • JBoss Fuse
    • 6.1
    • 6.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.