Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2010-04-20 02:26:20 +0000
committerslewis2010-04-20 02:26:20 +0000
commit31653b2e8952c748ae9e7282d87c02ed280e2ac2 (patch)
treef15fa1845ede4133f58b074199d3d4036fa432d6 /examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/src/org/eclipse/ecf/examples/internal/remoteservices/hello/ds/host
parent47477b3a744706087414959670dc42daa401365a (diff)
downloadorg.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.java8
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;
}
-
}

Back to the top