Merge pull request #6 from qixiaobo/fix-group-for-register master
authormin <z82507200@gmail.com>
Thu, 1 Aug 2019 09:04:45 +0000 (17:04 +0800)
committerGitHub <noreply@github.com>
Thu, 1 Aug 2019 09:04:45 +0000 (17:04 +0800)
dubbo group not set for reference

1  2 
src/main/java/org/apache/dubbo/proxy/service/GenericInvoke.java

index 2783361b7d7e2c48992dd2a60a0a17f8894f3870,8c600b0d6a4036ad7a69e9e351c1cd83623e22e9..eccdcd885f23708115f97cecf275d61a19796d0f
@@@ -24,9 -24,10 +24,10 @@@ public class GenericInvoke 
          GenericInvoke.registry = registry;
      }
  
 -    public static void init() {
 +    private static void init() {
          RegistryConfig registryConfig = new RegistryConfig();
          registryConfig.setAddress(registry.getUrl().getProtocol() + "://" + registry.getUrl().getAddress());
+         registryConfig.setGroup(registry.getUrl().getParameter(org.apache.dubbo.common.constants.CommonConstants.GROUP_KEY));
          applicationConfig = new ApplicationConfig();
          applicationConfig.setName("dubbo-proxy");
          applicationConfig.setRegistry(registryConfig);