rjmoran68
Jul 1st, 2005, 09:46 AM
I am having trouble getting the BeanNameAutoProxyCreator to work. When I configure a simple intreceptor with the ProxyBeanFactory it works fine, but when I attempt to do the same thing with the BeanNameAutoProxyCreator my bean is never proxied and the advice is never applied. I am not sure what I am doing wrong. Here is a portion of my configuration.
<beans>
<bean id="FullBookService" class="com.fmr.fiis.ws.fullbook.facade.CWsIPFullBookFacad eImpl"/>
<bean id="performanceThreshholdInterceptor" class="com.fmr.fiis.ws.fullbook.aop.CWsPerformanceInterce ptor">
<constructor-arg>
<value>3000</value>
</constructor-arg>
</bean>
<bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNa meAutoProxyCreator">
<property name="interceptorNames">
<list>
<value>performanceThreshholdInterceptor</value>
</list>
</property>
<property name="beanNames">
<list>
<value>FullBookService</value>
</list>
</property>
</bean>
<beans>
<bean id="FullBookService" class="com.fmr.fiis.ws.fullbook.facade.CWsIPFullBookFacad eImpl"/>
<bean id="performanceThreshholdInterceptor" class="com.fmr.fiis.ws.fullbook.aop.CWsPerformanceInterce ptor">
<constructor-arg>
<value>3000</value>
</constructor-arg>
</bean>
<bean id="autoProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNa meAutoProxyCreator">
<property name="interceptorNames">
<list>
<value>performanceThreshholdInterceptor</value>
</list>
</property>
<property name="beanNames">
<list>
<value>FullBookService</value>
</list>
</property>
</bean>