[dubbo] branch master updated: Update README.md

2021-02-22 Thread liujun
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 32f07f4  Update README.md
32f07f4 is described below

commit 32f07f4be5b2ba81543288d81abd5871e53b11bc
Author: ken.lj 
AuthorDate: Tue Feb 23 14:32:06 2021 +0800

Update README.md
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 466ea7f..6ebc99c 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ There's a 
[README](https://github.com/apache/dubbo-samples/tree/master/dubbo-sam
 
 ```xml
 
-2.7.8
+2.7.9
 
 
 



[dubbo] branch master updated: Update README.md

2020-07-27 Thread mercyblitz
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 418e056  Update README.md
418e056 is described below

commit 418e056aaa4472b15a087984e3b15af12489f029
Author: Mercy Ma 
AuthorDate: Tue Jul 28 10:29:43 2020 +0800

Update README.md

Update the Dubbo 2.7.8
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 78514ef..153121d 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ There's a 
[README](https://github.com/apache/dubbo-samples/tree/master/java/dubb
 
 ```xml
 
-2.7.7
+2.7.8
 
 
 



[dubbo] branch master updated: Update README.md

2020-05-21 Thread hengyunabc
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 88cb7f5  Update README.md
88cb7f5 is described below

commit 88cb7f51e1a401c57f9a4d9e0c1fe919da0cd308
Author: hengyunabc 
AuthorDate: Fri May 22 01:01:23 2020 +0800

Update README.md
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index c9e59eb..a45ebf8 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ There's a 
[README](https://github.com/apache/dubbo-samples/tree/master/java/dubb
 
 ```xml
 
-2.7.6
+2.7.7
 
 
 



[dubbo] branch master updated: Update README.md

2020-03-29 Thread liujieqin
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 6bf384a  Update README.md
6bf384a is described below

commit 6bf384ada6ca19a56986b38f596d2517e4e0
Author: qinliujie 
AuthorDate: Mon Mar 30 12:13:08 2020 +0800

Update README.md

update dubbo version
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index 46822fe..c9e59eb 100644
--- a/README.md
+++ b/README.md
@@ -42,7 +42,7 @@ There's a 
[README](https://github.com/apache/dubbo-samples/tree/master/java/dubb
 
 ```xml
 
-2.7.5
+2.7.6
 
 
 



[dubbo] branch master updated: Update README.md (#4789)

2019-08-11 Thread tswstarplanet
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 8b31781  Update README.md (#4789)
8b31781 is described below

commit 8b31781333d12f7fb61974a325ae67cdf88de09f
Author: freekry <961774...@qq.com>
AuthorDate: Sun Aug 11 14:14:47 2019 +0800

Update README.md (#4789)

update some links and some simple code
---
 README.md | 74 +++
 1 file changed, 41 insertions(+), 33 deletions(-)

diff --git a/README.md b/README.md
index 2a923bb..8a855eb 100644
--- a/README.md
+++ b/README.md
@@ -76,86 +76,94 @@ public interface GreetingService {
 
 ```java
 package org.apache.dubbo.samples.provider;
- 
-import org.apache.dubbo.samples.api.GreetingService;
- 
-public class GreetingServiceImpl implements GreetingService {
+
+import org.apache.dubbo.samples.api.GreetingsService;
+
+public class GreetingsServiceImpl implements GreetingsService {
 @Override
-public String sayHello(String name) {
-return "Hello " + name;
+public String sayHi(String name) {
+return "hi, " + name;
 }
 }
 ```
 
-*See 
[provider/GreetingServiceImpl.java](https://github.com/apache/dubbo-samples/blob/master/dubbo-samples-api/src/main/java/org/apache/dubbo/samples/server/GreetingsServiceImpl.java)
 on GitHub.*
+*See 
[provider/GreetingServiceImpl.java](https://github.com/apache/dubbo-samples/blob/master/dubbo-samples-api/src/main/java/org/apache/dubbo/samples/provider/GreetingsServiceImpl.java)
 on GitHub.*
 
 ### Start service provider
 
 ```java
-package org.apache.dubbo.demo.provider;
+package org.apache.dubbo.samples.provider;
+
 
 import org.apache.dubbo.config.ApplicationConfig;
 import org.apache.dubbo.config.RegistryConfig;
 import org.apache.dubbo.config.ServiceConfig;
-import org.apache.dubbo.samples.api.GreetingService;
+import org.apache.dubbo.samples.api.GreetingsService;
 
-import java.io.IOException;
- 
-public class Application {
+import java.util.concurrent.CountDownLatch;
 
-public static void main(String[] args) throws IOException {
-ServiceConfig serviceConfig = new 
ServiceConfig();
-serviceConfig.setApplication(new 
ApplicationConfig("first-dubbo-provider"));
-serviceConfig.setRegistry(new 
RegistryConfig("multicast://224.5.6.7:1234"));
-serviceConfig.setInterface(GreetingService.class);
-serviceConfig.setRef(new GreetingServiceImpl());
-serviceConfig.export();
-System.in.read();
+public class Application {
+private static String zookeeperHost = 
System.getProperty("zookeeper.address", "127.0.0.1");
+
+public static void main(String[] args) throws Exception {
+ServiceConfig service = new ServiceConfig<>();
+service.setApplication(new ApplicationConfig("first-dubbo-provider"));
+service.setRegistry(new RegistryConfig("zookeeper://" + zookeeperHost 
+ ":2181"));
+service.setInterface(GreetingsService.class);
+service.setRef(new GreetingsServiceImpl());
+service.export();
+
+System.out.println("dubbo service started");
+new CountDownLatch(1).await();
 }
 }
 ```
 
-*See 
[provider/Application.java](https://github.com/apache/dubbo-samples/blob/master/dubbo-samples-api/src/main/java/org/apache/dubbo/samples/server/Application.java)
 on GitHub.*
+*See 
[provider/Application.java](https://github.com/apache/dubbo-samples/blob/master/dubbo-samples-api/src/main/java/org/apache/dubbo/samples/provider/Application.java)
 on GitHub.*
 
 ### Build and run the provider
 
 ```bash
 # mvn clean package
-# mvn -Djava.net.preferIPv4Stack=true 
-Dexec.mainClass=org.apache.dubbo.demo.provider.Application exec:java
+# mvn -Djava.net.preferIPv4Stack=true 
-Dexec.mainClass=org.apache.dubbo.samples.provider.Application exec:java
 ```
 
 ### Call remote service in consumer
 
 ```java
-package org.apache.dubbo.demo.consumer;
+package org.apache.dubbo.samples.client;
+
 
 import org.apache.dubbo.config.ApplicationConfig;
 import org.apache.dubbo.config.ReferenceConfig;
 import org.apache.dubbo.config.RegistryConfig;
-import org.apache.dubbo.samples.api.GreetingService;
+import org.apache.dubbo.samples.api.GreetingsService;
 
 public class Application {
+private static String zookeeperHost = 
System.getProperty("zookeeper.address", "127.0.0.1");
+
 public static void main(String[] args) {
-ReferenceConfig referenceConfig = new 
ReferenceConfig();
-referenceConfig.setApplication(new 
ApplicationConfig("first-dubbo-consumer"));
-referenceConfig.setRegistry(new 
RegistryConfig("multicast://224.5.6.7:1234"));
-referenceConfig.setInterface(GreetingService.class);
-GreetingService greetingService = referenceConfig.get();
-System.out.println(greetingService.sayHello("world"));

[incubator-dubbo] branch master updated: Update README.md (#3808)

2019-04-05 Thread huxing
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
 new 4dc0612  Update README.md (#3808)
4dc0612 is described below

commit 4dc0612cb64eae2afe2ac0493d44723769556326
Author: wuhulala <370031...@qq.com>
AuthorDate: Fri Apr 5 18:20:51 2019 +0800

Update README.md (#3808)

add  @Override  annotation
---
 README.md | 1 +
 1 file changed, 1 insertion(+)

diff --git a/README.md b/README.md
index 171483f..04c7670 100644
--- a/README.md
+++ b/README.md
@@ -79,6 +79,7 @@ package org.apache.dubbo.samples.provider;
 import org.apache.dubbo.samples.api.GreetingService;
  
 public class GreetingServiceImpl implements GreetingService {
+@Override
 public String sayHello(String name) {
 return "Hello " + name;
 }