I have the following code in my clientContext.xml to set up a BeanNameAutoProxyCreator object to call a MethodInterceptor for *Proxy beans, all of which are SimpleRemoteStatelessSessionProxyFactoryBeans:
My issue - the isMatch() method of BeanNameAutoProxyCreator is not being called for any of my Proxy objects in the XML file, but it is being called for some of the other defined beans. What am I doing wrong? Do they need to be implementing a specific interface to be picked up by the AutoProxy?
<bean id="securityInterceptor" class="test.service.SecurityInterceptor"/> <bean id="securityProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"> <property name="beanNames"> <list> <value>*Proxy</value> </list> </property> <property name="interceptorNames"> <value>securityInterceptor</value> </property> </bean>