How to hand CXF Fault in camel
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.