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
parent47477b3a744706087414959670dc42daa401365a (diff)
downloadorg.eclipse.ecf-31653b2e8952c748ae9e7282d87c02ed280e2ac2.tar.gz
org.eclipse.ecf-31653b2e8952c748ae9e7282d87c02ed280e2ac2.tar.xz
org.eclipse.ecf-31653b2e8952c748ae9e7282d87c02ed280e2ac2.zip
Update to IHello service
-rw-r--r--examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/META-INF/MANIFEST.MF2
-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
2 files changed, 6 insertions, 4 deletions
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/META-INF/MANIFEST.MF b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/META-INF/MANIFEST.MF
index 46f0e5520..bf3117eb7 100644
--- a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/META-INF/MANIFEST.MF
+++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.ds.host/META-INF/MANIFEST.MF
@@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %bundleName
Bundle-SymbolicName: org.eclipse.ecf.examples.remoteservices.hello.ds.host;singleton:=true
-Bundle-Version: 1.0.0.qualifier
+Bundle-Version: 2.0.0.qualifier
Bundle-Vendor: %bundleProvider
Bundle-RequiredExecutionEnvironment: J2SE-1.5,
J2SE-1.4,
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