You can specify interceptors at the jaxrs/jaxws server level or else apply them to a new bus instance only used by your services.
Hope this helps Mandy Sent from a mobile device > On 6 Feb 2014, at 13:28, Thomas Manson <[email protected]> wrote: > > Hi, > > I've build a library that calls a set of webservices (provided by the > same application) with CXF. > > I've my own interceptor that is attached to the Bus : > > <cxf:bus> > <cxf:features> > <p:policies /> > <cxf:logging /> > </cxf:features> > <cxf:outInterceptors> > <ref bean="AMXBPMSecurityWSS4JOutInterceptor" /> > </cxf:outInterceptors> > </cxf:bus> > > My library is included in a webapplication, that needs to consume > another webservice (different from the one used by my library). > > with my interceptor I trap all outgoing soap call, so it interfere > with the webapp soap call, and make them fail for security reasons. > > How can I configure my interceptor only for a set of clients, so that > my library is agnostic and do not interfere with other soap call? > > All example I've found attach the interceptor to the bus. > > Regards, > Thomas.
