zhoutianli518 commented on issue #2051:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/2051#issuecomment-731962212


   客户端,使用如下方式调用服务端的接口
   <cse:rpc-reference id="xxx" ..../>
   
   
客户端生成的动态代理,从源码PojoReferenceMeta类的实现来看,是写死使用Invoker.createProxy创建的,业务自定义的MyInvoker
 没法生效吧。
   
     @Override
     public void afterPropertiesSet() {
       if (consumerIntf == null) {
         throw new ServiceCombException(
             String.format(
                 "microserviceName=%s, schemaid=%s, \n"
                     + "do not support implicit interface anymore, \n"
                     + "because that caused problems:\n"
                     + "  1.the startup process relies on other microservices\n"
                     + "  2.cyclic dependent microservices can not be 
deployed\n"
                     + "suggest to use @RpcReference or "
                     + "<cse:rpc-reference id=\"...\" microservice-name=\"...\" 
schema-id=\"...\" interface=\"...\"></cse:rpc-reference>.",
                 microserviceName,
                 schemaId));
       }
   
       proxy = Invoker.createProxy(microserviceName, schemaId, consumerIntf);
     }


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


Reply via email to