You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by al...@apache.org on 2022/11/08 12:49:15 UTC

[dubbo-samples] branch master updated: Enhance netty3 test zk address (#569)

This is an automated email from the ASF dual-hosted git repository.

albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-samples.git


The following commit(s) were added to refs/heads/master by this push:
     new 7e49411c Enhance netty3 test zk address (#569)
7e49411c is described below

commit 7e49411cee214a438819fe7530eac1198efe0cb9
Author: Albumen Kevin <jh...@gmail.com>
AuthorDate: Tue Nov 8 20:49:09 2022 +0800

    Enhance netty3 test zk address (#569)
---
 .../src/main/java/org/apache/dubbo/samples/provider/Application.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dubbo-samples-boundary-test/dubbo-samples-port-unification-netty3/src/main/java/org/apache/dubbo/samples/provider/Application.java b/dubbo-samples-boundary-test/dubbo-samples-port-unification-netty3/src/main/java/org/apache/dubbo/samples/provider/Application.java
index 3036f5a0..09ee0301 100644
--- a/dubbo-samples-boundary-test/dubbo-samples-port-unification-netty3/src/main/java/org/apache/dubbo/samples/provider/Application.java
+++ b/dubbo-samples-boundary-test/dubbo-samples-port-unification-netty3/src/main/java/org/apache/dubbo/samples/provider/Application.java
@@ -44,9 +44,10 @@ public class Application {
         service.setInterface(GreetingService.class);
         service.setRef(new GreetingServiceImpl());
 
+        String zookeeperAddress = System.getProperty("zookeeper.address", "127.0.0.1");
         DubboBootstrap.getInstance()
                 .application(applicationConfig)
-                .registry(new RegistryConfig("zookeeper://" + "127.0.0.1" + ":" + "2181"))
+                .registry(new RegistryConfig("zookeeper://" + zookeeperAddress + ":" + "2181"))
                 .protocol(protocolConfig)
                 .service(service)
                 .start();


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