diff options
author | slewis | 2010-05-12 02:31:56 +0000 |
---|---|---|
committer | slewis | 2010-05-12 02:31:56 +0000 |
commit | a6d4f9f6f2d5d80cbcfd13afd254c81ba42653d6 (patch) | |
tree | 9473fe187ad2e2c680be934fa79fd7600a785fce /examples | |
parent | f905ed900f94dc7bfaa9fff59f6d92c4a0b60c1f (diff) | |
download | org.eclipse.ecf-a6d4f9f6f2d5d80cbcfd13afd254c81ba42653d6.tar.gz org.eclipse.ecf-a6d4f9f6f2d5d80cbcfd13afd254c81ba42653d6.tar.xz org.eclipse.ecf-a6d4f9f6f2d5d80cbcfd13afd254c81ba42653d6.zip |
Added second hello service registration for example and tests
Diffstat (limited to 'examples')
-rw-r--r-- | examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/HelloHostApplication.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/HelloHostApplication.java b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/HelloHostApplication.java index 824b08609..5beeeef57 100644 --- a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/HelloHostApplication.java +++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/HelloHostApplication.java @@ -39,7 +39,8 @@ public class HelloHostApplication implements IApplication, private boolean done = false; private ServiceRegistration helloRegistration; - + //private ServiceRegistration helloRegistration2; + public Object start(IApplicationContext appContext) throws Exception { bundleContext = Activator.getContext(); // Process Arguments @@ -74,6 +75,13 @@ public class HelloHostApplication implements IApplication, // tell everyone System.out.println("Host: Hello Service Registered"); + // register remote service +// helloRegistration2 = bundleContext.registerService(IHello.class +// .getName(), new Hello(), props); + + // tell everyone again +// System.out.println("Host: Hello2 Service Registered"); + // wait until stopped waitForDone(); @@ -85,6 +93,10 @@ public class HelloHostApplication implements IApplication, helloRegistration.unregister(); helloRegistration = null; } +// if (helloRegistration2 != null) { +// helloRegistration2.unregister(); +// helloRegistration2 = null; +// } bundleContext = null; synchronized (appLock) { done = true; |