dubbo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] RengarS opened a new issue #2463: dubbo整合spring boot,增强dubbo service的一些问题
Date Fri, 07 Sep 2018 02:46:18 GMT
RengarS opened a new issue #2463: dubbo整合spring boot,增强dubbo service的一些问题
URL: https://github.com/apache/incubator-dubbo/issues/2463
 
 
   ### Environment
   
   * Dubbo version:  2.3.5
   * Operating System version:  Mac OS X
   * Java version: 8
   
   ### Step to reproduce this issue
   
   1.  spring boot 整合dubbo
   2. 为了使用CGLib增强dubbo的service,我实现了Spring的BeanPostProcessor接口,并在

        postProcessAfterInitialization方法里将原来的bean替换成了该bean的一个proxy。这种方式使用rest
api 
        是没有问题的,service前后确实被增强。但是使用dubbo rpc的话,该增强无效。
   
   
   ### Expected Result
   1. 初步预测以上问题是因为dubbo在postProcessAfterInitialization方法执行前就已经持有原有的service

       bean的引用,因此postProcessAfterInitialization执行后并没有对原有的service
bean产生影响。所以, 
       我想dubbo能不能考虑在postProcessAfterInitialization执行后,再去持有service
bean的引用,使该增强 
       有效。
   
   2. dubbo的 @Service注解在CGLib增强后丢失,能不能在@Service注解上加一个@Inherited注解,使该注

        解能被CGLib的proxy继承。
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


Mime
View raw message