zrlw opened a new issue #8098:
URL: https://github.com/apache/dubbo/issues/8098


   ### Environment
   * Dubbo version:  2.7.5
   * Operating System version:  centos7
   * Java version: 1.8
   
   ### Steps to reproduce this issue
   xml配置dubbo:reference方式,dubbo:method配置的onreturn,onthrow方法为包含spring 
bean(以下称A)的方法,这些方法上还有诸如@Transactional之类的Spring AOP注解。
   问题1:
   A里面@Autowired注解的成员均注入失败,使用时均为null对象。
   
我们采取的补救方法是去掉@Autowired注解,将A增加ApplicationListener<ContextRefreshedEvent>接口实现,在onApplicationEvent方法里重新从ApplicationContext里取得相应的bean赋给本该由@Autowired注入的成员。
   
   问题2:
   onreturn,onthrow方法上的Spring AOP注解均失效。
   我们采取的补救方法是将onreturn,onthrow方法拆分,相关业务处理代码以及Spring 
AOP注解移到另外一个bean,A里面的onreturn,onthrow方法只是调用另外那个bean带注解的方法。
   
   问题3:
   
@Reference注解配置oninvoke,onreturn,onthrow无效,我们看到#6833已经描述过这个问题,5月份已修复,我们想咨询一下最新发布的3.0是否包含这个修复?


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to