You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "WhyStart (via GitHub)" <gi...@apache.org> on 2024/10/09 07:12:48 UTC
[I] feat:Modify the inner class to call the handleMessage method using a bean approach [rocketmq-spring]
WhyStart opened a new issue, #686:
URL: https://github.com/apache/rocketmq-spring/issues/686
https://github.com/apache/rocketmq-spring/blob/b3963f76589a5348370ea990c15e3878806e2710/rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/support/DefaultRocketMQListenerContainer.java#L423-L444
https://github.com/apache/rocketmq-spring/blob/b3963f76589a5348370ea990c15e3878806e2710/rocketmq-spring-boot/src/main/java/org/apache/rocketmq/spring/support/DefaultRocketMQListenerContainer.java#L446-L467
在更新了#617 pr后,我尝试aop切面handleMessage方法,但是没有作用,内部类调用外部类好像并不会走bean调用,导致aop失效,修改内部类调用handleMessage为bean调用,使aop切面handleMessage方法可以正常使用。
After updating PR #617, I tried to use AOP to intercept the handleMessage method, but it didn't work. It seems that when an inner class calls a method of the outer class, it doesn't go through the bean invocation, causing the AOP to fail. We need to modify the inner class to call handleMessage as a bean invocation, so that the AOP interception of the handleMessage method can work properly.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] feat:Modify the inner class to call the handleMessage method using a bean approach [rocketmq-spring]
Posted by "RongtongJin (via GitHub)" <gi...@apache.org>.
RongtongJin closed issue #686: feat:Modify the inner class to call the handleMessage method using a bean approach
URL: https://github.com/apache/rocketmq-spring/issues/686
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org