You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "MrZbb (via GitHub)" <gi...@apache.org> on 2023/03/12 12:30:27 UTC

[GitHub] [dubbo] MrZbb opened a new issue, #11794: dubbo 2.7升级到dubbo 3.0后泛化调用的注册中心配置被覆盖的问题

MrZbb opened a new issue, #11794:
URL: https://github.com/apache/dubbo/issues/11794

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ## 之前dubbo 2.7的时候泛化调用的时候,注册中心地址是开放给用户输入的referenceConfig.setRegistry,类似下面这种
   `       ReferenceConfig<GenericService> referenceConfig = new ReferenceConfig<>(); 
           referenceConfig.setInterface("com.demo.test"); 
           referenceConfig.setTimeout(2000000);
           referenceConfig.setRetries(0);
           referenceConfig.setRegistry(new RegistryConfig("zookeeper://127.0.0.1"));
           referenceConfig.setGeneric("true");
           referenceConfig.setTimeout(7000);
           GenericService genericService = referenceConfig.get();   
           Map<String,String> map = new HashMap<>();
           Object result = genericService.$invoke("captcha", new String[]{"com.base.Req"}, new Object[]{map});
           System.out.println("captcha(return):"+result);`
           
           将dubbo升级到3.0.10后,这个referenceConfig.setRegistry用户输入的值无效,会在运行的时候被替换成应用本身的注册中心地址,所以想问下,dubbo3.0.10后泛化调用不再支持这些注册中心参数开放给用户了?需要在应用的配置源里定义好多个注册中心的id,让用户只能选择匹配的registryId去做关联才行吗


-- 
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: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


[GitHub] [dubbo] AlbumenJ commented on issue #11794: dubbo 2.7升级到dubbo 3.0后泛化调用的注册中心配置被覆盖的问题

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #11794:
URL: https://github.com/apache/dubbo/issues/11794#issuecomment-1471593888

   还是支持的,可以升级到最新版本看一下,如果有问题的话可以提供个 demo


-- 
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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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