diff options
author | slewis | 2010-04-20 02:26:20 +0000 |
---|---|---|
committer | slewis | 2010-04-20 02:26:20 +0000 |
commit | 31653b2e8952c748ae9e7282d87c02ed280e2ac2 (patch) | |
tree | f15fa1845ede4133f58b074199d3d4036fa432d6 /examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/host | |
parent | 47477b3a744706087414959670dc42daa401365a (diff) | |
download | org.eclipse.ecf-31653b2e8952c748ae9e7282d87c02ed280e2ac2.tar.gz org.eclipse.ecf-31653b2e8952c748ae9e7282d87c02ed280e2ac2.tar.xz org.eclipse.ecf-31653b2e8952c748ae9e7282d87c02ed280e2ac2.zip |
Update to IHello service
Diffstat (limited to 'examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/host')
-rw-r--r-- | examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/host/HelloComponent.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/host/HelloComponent.java b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/host/HelloComponent.java index ea76cdb6b..936fe3978 100644 --- a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/host/HelloComponent.java +++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/host/HelloComponent.java @@ -13,8 +13,10 @@ import org.eclipse.ecf.examples.remoteservices.hello.IHello; public class HelloComponent implements IHello { - public void hello(String from) { - System.out.println("hello from="+from); + public String hello(String from) { + // This is the implementation of the IHello service + // This method can be executed via remote proxies + System.out.println("received hello from="+from); + return "Hello service host says 'Hi' back to "+from; } - } |