Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2010-05-07 03:20:02 +0000
committerslewis2010-05-07 03:20:02 +0000
commit5394438c6ab32ab3fe34cf90730083e748ecf693 (patch)
tree12bc54798a41e0fb625a4fe8d952f556383ffc56 /examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host
parent65990eb4f67846439105de577c166f4cf3831866 (diff)
downloadorg.eclipse.ecf-5394438c6ab32ab3fe34cf90730083e748ecf693.tar.gz
org.eclipse.ecf-5394438c6ab32ab3fe34cf90730083e748ecf693.tar.xz
org.eclipse.ecf-5394438c6ab32ab3fe34cf90730083e748ecf693.zip
Added example code for setting up IHostDiscoveryListener and IProxyDiscoveryListener respectively
Diffstat (limited to 'examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host')
-rw-r--r--examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/HelloHostApplication.java6
1 files changed, 6 insertions, 0 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 bf0ebf582..77e8021e3 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
@@ -40,6 +40,12 @@ public class HelloHostApplication implements IApplication,
bundleContext = Activator.getContext();
// Process Arguments
processArgs(appContext);
+
+ // Register host discovery listener to log the publish/unpublish of remote services.
+ // This LoggingHostDiscoveryListener logs the publication of OSGi remote services...so
+ // that the discovery can be more easily debugged.
+ // bundleContext.registerService(IHostDiscoveryListener.class.getName(), new LoggingHostDiscoveryListener(), null);
+
// Setup properties for remote service distribution, as per OSGi 4.2 remote services
// specification (chap 13 in compendium spec)
Properties props = new Properties();

Back to the top