Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

cCXF Fault Handling

Hello,
I would like to add some kind of Fault Handling after a cCXF Service Call. For example if the Service is not available I would like to reattempt the Service-Call after 10 seconds.
I looked at the cErrorHandler Component, but when I get the org.apache.cxf.interceptor.Fault message nothing happends.
The same with the cTry - catch component. Catching the org.apache.cxf.interceptor.Fault does not work. The same with the cException component.
So what could I do?
Thanks in advance!

Labels (2)
11 Replies
Anonymous
Not applicable
Author

There are two ways to enable handleFault() in Talend Studio. It can have context scope (all routes) if you set it in cConfig. Add the code camelContext.setHandleFault() to the cConfig component. If you wish to add it with route scope add it with a javaDSL component immediately after the start of the route. The resulting route should look something like:
from("myuri:xxx").handleFault().xxx
Anonymous
Not applicable
Author

wrong place