Hey all,
I'm using Spring 2.5. I also got AOP to work right.
However, when I start up Tomcat, I see the following messages in the log file. Does this mean I haven't configured Spring AOP correctly?
Code:[org.springframework.web.context.support.XmlWebApplicationContext] : Bean 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) [org.springframework.web.context.support.XmlWebApplicationContext] : Bean '(inner bean)#1' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
Your advise is much appreciated! Thanks for your time.
Thank you,
Joe
AOP configuration:
Code:<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:p="http://www.springframework.org/schema/p" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd"> <bean id="cacheManager" class="org.springframework.cache.ehcache.EhCacheManagerFactoryBean" p:configLocation="classpath:ehcache.xml" /> <bean id="pageCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean" p:cacheManager-ref="cacheManager" p:cacheName="WEBPAGECACHE" /> <bean id="pageCacheAdvice" class="myweb.cache.MethodCacheAdvice" p:cache-ref="pageCache" p:enableLogging="false" /> <aop:config> <aop:aspect id="pageCacheAspect" ref="pageCacheAdvice"> <aop:pointcut id="getWebpage" expression="execution(* myweb.service.WebpageManager.getWebpage(..))" /> <aop:around pointcut-ref="getWebpage" method="getFromCache" /> <aop:pointcut id="getPageElements" expression="execution(* myweb.service.WebpageManager.getPageElements(..))" /> <aop:around pointcut-ref="getPageElements" method="getFromCache" /> <aop:pointcut id="getPageLinks" expression="execution(* myweb.service.WebpageManager.getPageLinks(..))" /> <aop:around pointcut-ref="getPageLinks" method="getFromCache" /> </aop:aspect> </aop:config> </beans>


Reply With Quote