Announcement Announcement Module
Collapse

Spring Dynamic Modules forum decommissioned in favor of Eclipse Gemini Blueprint

With the official first release of Eclipse Gemini Blueprint shipped, the migration of the Spring Dynamic Modules code base to the Eclipse Foundation, as part of the Gemini project, has been completed.

As such, this forum has been decommissioned in favour of the Eclipse Gemini forums.
See more
See less
Issue with Spring Method interceptor Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Issue with Spring Method interceptor

    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:

    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>
    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.

    Not sure what I'm missing here, any pointer will be appreciated.

    -Thanks
Working...
X