-
Nov 15th, 2011, 07:37 AM
#1
issue with aop:config:spring aop 3.0 vs sring aop 2.5 -advice not being woven
hi all
my configuration with spring aop 2.5 works fine but when i migration to spring aop 3.0 advice is not woven
<aop:config>
<aop:advisor pointcut="execution(* org.springframework.integration.jms.JmsSendingMess ageHandler
.handleMessage*(..)))"
advice-ref="jmsOutBoundRetryInterceptor" order="-1" />
</aop:config>
please find the log in 2.5 where it clearly shows advise is woven but i don't find any log in 3.0
2011-11-14 07:41:47,499|DEBUG|org.springframework.aop.aspectj .autoproxy.AspectJAwareAdvisorAutoProxyCreator|Cre ating implicit proxy for bean 'org.springframework.integration.jms.JmsSendingMes sageHandler#15' with 0 common interceptors and 2 specific interceptors
2011-11-14 07:41:47,499|DEBUG|org.springframework.aop.framewo rk.JdkDynamicAopProxy|Creating JDK dynamic proxy: target source is SingletonTargetSource for target object [org.springframework.integration.jms.JmsSendingMess ageHandler@17361e2]
i don't find any log like that ,and still i tested but same config in 3.0 not working
do i need to add any more configuration ?
Thanks in advance
srinibas
-
Nov 18th, 2011, 12:16 AM
#2
aop 3.0
<aop:config>
<aop:advisor pointcut="execution(* org.springframework.integration.jms.JmsSendingMess ageHandler.handleMessage*(..)))"
advice-ref="jmsOutBoundRetryInterceptor" order="-1" />
</aop:config>
for this the said advise is not woven,but when i modified the advise for all the methods its woven in stating of the pointcut class
but not on the method(handleMessage) for which i want the advice
modified pointcut
----------------
<aop:config>
<aop:advisor pointcut="execution(* org.springframework.integration.jms.JmsSendingMess ageHandler.*(..)))"
advice-ref="jmsOutBoundRetryInterceptor" order="-1" />
</aop:config>
any suggestions ?
-
Nov 21st, 2011, 06:40 AM
#3
i am stuck with this issue,any one had any clue...
any one who uses aop 3.0 ,apply any advice any spring internal classes .is there any restriction spring internal classes will not be advised?
Thanks in Advance..
Srinibas
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules