You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Jim Ma <ma...@gmail.com> on 2015/04/10 04:58:28 UTC

Enable/disable cxf feature on the fly

Hi,
I am writing an experimental thing to enable/disable cxf features
dynamically: like enable/disalbe logging, schemaValidation and gzip on the
fly. The basic idea is to configure features with the url like :
http://localhost:9001/endpoint?logging=true, without modify code or
configuration xml and add all these interceptors of each cxf feature class
to JaxwsEndpointImpl. One problem I can see now is I must add the feature
interceptors to JaxwsEndpointImpl's in, out. faultIn and faultOut
interceptors atomically, then add to message's these four
PhaseInterceptorChains atomically; then it can avoid the situation like
loggingInInterceptor is added, but loggingOutIntreceptor is not. I am not
sure if making adding interceptors atomic is something I need to concern,
or there is some simple way to handle this without bring some runtime
slowness?

Thanks,
Jim