Merge pull request #6 from qixiaobo/fix-group-for-register
[dubbo-proxy.git] / src / main / java / org / apache / dubbo / proxy / service / GenericInvoke.java
index 2783361b7d7e2c48992dd2a60a0a17f8894f3870..eccdcd885f23708115f97cecf275d61a19796d0f 100644 (file)
@@ -27,6 +27,7 @@ public class GenericInvoke {
     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);