apache - Camel's CXF component not catching onException(Exception.class) -
i have camel-cxf webservice up. use handle soap faults in cxf's soap fault interceptor mechanism. working well.
i thought better handle exception thrown @ camel layer @ same layer , wrote simple onexception scenario this:
onexception(exception.class). to("direct:mywsexceptionhandler");
whenever custom exception thrown, expecting onexception kick in(remember have soap fault interceptor too), doesn't. cxf taking on , message going through interceptors, rather camel route.
is expected way, or doing wrong?
my cxf fault interceptor looks this:
@component("soapfaultinterceptor") public class soapfaultinterceptor extends abstractphaseinterceptor { public soapfaultinterceptor() { super(phase.marshal); } public void handlemessage(message message) throws fault { // message coming here directly, instead of going route defined onexception. } } can please tell how fix this? don't want exception generated @ camel layer leave layer without being handled..
thanks in advance.
camel's onexception triggeres if there exception. soap fault represented message fault flag = true.
what can set handlefault=true on camelcontext, turn soap fault messages exception onexception can react upon.
Comments
Post a Comment