Hi,
I've configured an Advice, advisor, and a proxyfactorybean but when I glue it all together and start Tomcat, It doesnt't work.
Here is my dispatcher-servlet.xml config:
<bean id="clientesDAOHibernate" class="dao.implementations.ClientesDAOHibernate">
<property name="sessionFactory"><ref bean="sessionFactory"/></property>
</bean>
<bean id="loggingAdvice" class="aspect.LoggingAdvice"/>
<bean id="clientePointcutAdvisor" class="org.springframework.aop.support.NameMatchMe thodPointcutAdvisor">
<property name="mappedName">
<value>insert</value>
</property>
<property name="advice">
<value>loggingAdvice</value>
</property>
</bean>
<bean id="clientesDAO" class="org.springframework.aop.framework.ProxyFact oryBean">
<property name="proxyInterfaces">
<value>dao.interfaces.ClientesDAO</value>
</property>
<property name="interceptorNames">
<list>
<value>clientePointcutAdvisor</value>
</list>
</property>
<property name="target">
<ref bean="clientesDAOHibernate"/>
</property>
</bean>
I don't know what's wrong since I think I've got all I need to configure a method interceptor. Any ideas?
Thanks.


Reply With Quote
. The server starts ok, but when the program reaches the insert method in the pointcut, nothing happens... very frustrating.
