File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Spring AOP issue
Joined: Aug 09, 2007
Aug 27, 2009 13:38:11
I wrote a "band-aid" fix for a live application as a Spring AOP class implementing MethodInterceptor (the app only has about 6-9 months to live, so a "correct" fix wasn't worth it).
However, I added the following lines to my applicationContext.xml file to apply the aspect but the MethodInterceptor never gets invoked.
<bean id="equipmentSummaryReport" class="com.whatever.reports.equipment.EquipmentSummaryReportImpl"/> <bean id="equipmentSummaryReportAdvice" class="com.whatever.aop.EquipmentTypeSummaryReportAdvice"> <property name="dataSource"> <ref bean="dataSource"/> </property> </bean> <bean id="esrAutoProxyCreator" class="org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator"> <property name="proxyTargetClass" value="true"/> <property name="interceptorNames"> <list> <idref bean="equipmentSummaryReportAdvice"/> </list> </property> <property name="beanNames" value="equipmentSummaryReport" /> </bean>
Can anyone assist?
Joined: Nov 24, 2005
Aug 27, 2009 22:57:08
It looks fine from here. How are you getting a reference to equipmentSummaryReport ?
All roads lead to JavaRanch
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Spring AOP issue
Spring Transaction by AOP
Spring Transaction using Spring AOP
Problem with Spring AOP
Struts2 with Spring AOP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014