If I understand your question correctly, you want to dispatch incoming request to two different instances of WSSInInterceptor which are configured differently, and the dispatch criteria is based on some information in the incoming request. If this is case, what you are really looking for is a content-based-routing, i.e., you route incoming messages to different endpoints. For example, you can have two endpoints that are configured using different interceptors. A system test located under trunk\systests\src\test\java\org\apache\cxf\systest\versioning shows you to do a basic routing in CXF.
Hope this helps, Jervis > -----Original Message----- > From: Mayank Mishra [mailto:[EMAIL PROTECTED] > Sent: 2007?10?16? 21:03 > To: [email protected] > Subject: Configuring Interceptors > > > Hi all, > > I understand the way of plugging in In and Out Interceptors > to CXF bus like, > > <bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl"> > <property name="inInterceptors"> > <list> > <ref bean="SAAJInInterceptor"/> > <ref bean="WSS4JInConfiguration"/> > </list> > </property> > <property name="outInterceptors"> > <list> > <ref bean="SAAJOutInterceptor"/> > <ref bean="WSS4JOutConfiguration"/> > </list> > </property> > </bean> > <bean id ="WSS4JIn.. > <bean id = "WSS4JOut... > ... > > We can specify a set of configuration inside each of WSS4J In and Out > interceptors. > > My requirement is to specify an alternative configuration also along > with this configuration. So, if service configured for > configuration A > and B. If the incoming message adheres to Configuration B > rather than A, > CXFBus can pass the message to WSSInInterceptor configured for B > configuration, without WSSInInterceptor A giving Security Failure. > > Is it somehow feasible using CXF Spring Configuration or the way we > specify Interceptors to CXFBus? > > With Regards, > Mayank > ---------------------------- IONA Technologies PLC (registered in Ireland) Registered Number: 171387 Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
