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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content