posted 15 years ago
Thanks for the reply.
I got cglib and asm in my classpath and here is the snippet from applicationContext.xml
<!-- A simple MethodInterceptor style advice object (InterceptorA implements MethodInterceptor) -->
<bean id="loggingAspect" class="aspects.LoggingAspect"/>
<bean name="pointcut.advisor2" class="org.springframework.aop.support.NameMatchMethodPointcutAdvisor">
<property name="advice" ref="loggingAspect"/>
<property name="mappedName" value="*"/>
</bean>
<!-- Create the proxy bean that returns AOP'd varieties of our controller -->
<bean name="myController" class="org.springframework.aop.framework.ProxyFactoryBean">
<property name="target" ref="claimService" />
<property name="interceptorNames">
<list>
<value>pointcut.advisor2</value>
</list>
</property>
</bean>
After all this, I don't see any error, but also I don't see any thing happening.Aspect is not being executed.
Do you have a sample? Thanks-
Visu