I'm having an issue with using Spring interceptor in OSGI. I've a CXF service endpoint method which I'm trying a wrap with an interceptor to do some initialization. For some reason, the interceptor is not being invoked. Here's my spring entry:
As you can see, I've a CXF endpoint class AcadConnectChannelResource which has couple of methods search and searchJSONp. I've created the Named Method Cut interceptor to intercept these two method calls and so some initialization using the custom intercetor class.But, everytime the methods are invoked, the interceptor is not being called.Code:<jaxrs:server id="acadConnectServer" address="/rest/acadconnect3"> <jaxrs:serviceBeans> <ref bean="acadConnectResource" /> </jaxrs:serviceBeans> </jaxrs:server> <bean id="acadConnectResource" class="com.test.connectchannel.service.AcadConnectChannelResource" /> <bean class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"> <property name="beanNames"> <list> <value>com.test.connectchannel.service.AcadConnectChannelResource3</value> </list> </property> <property name="interceptorNames"> <list> <value>methodPointCut</value> </list> </property> </bean> <bean id="methodPointCut" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor"> <property name="advice"> <ref local="methodInterceptor" /> </property> <property name="mappedNames"> <list> <value>search</value> <value>searchJSONP</value> </list> </property> </bean> <bean id="methodInterceptor" class="com.test.connectchannel.util.ConnectChannelInterceptor"> </bean>
Not sure what I'm missing here, any pointer will be appreciated.
-Thanks


