I figured out direct call to Advisor works but if i use the following snippet then it prevents the call to Advisor and it never gets invoked
Here is the complete configuration fileCode:<!-- Advisor --> <bean id = "aroundCallAdvisor" class = "org.springframework.aop.support.NameMatchMethodPointcutAdvisor" > <property name="advice" ref="theTracingAroundAdvice"/> <property name="mappedName"> <value>createIpAddress</value> </property> </bean>
Code:<!-- Advisor --> <bean id = "aroundCallAdvisor" class = "org.springframework.aop.support.NameMatchMethodPointcutAdvisor" > <property name="advice" ref="theTracingAroundAdvice"/> <property name="mappedName"> <value>createIpAddress</value> </property> </bean> <!-- Advice class --> <bean id="theTracingAroundAdvice" class="com.boeing.nmt.nams.aspects.PrivilegesInterceptor"> </bean> <!--Transaction --> <bean id="hbmTransactionProxy" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"> <property name="beanNames"> <list> <value>*Manager</value> </list> </property> <property name="interceptorNames"> <list> <idref bean="txInterceptor" /> <idref bean="aroundCallAdvisor" /> </list> </property> </bean>


Reply With Quote