diff options
author | wjongman | 2010-05-18 23:11:37 +0000 |
---|---|---|
committer | wjongman | 2010-05-18 23:11:37 +0000 |
commit | 420964163959286162687919d6099b969fc32791 (patch) | |
tree | d32d7ff73591daad3b3fb24350242727caf78369 /examples | |
parent | 252261511f288c27cb2d1a74768f195d3273761a (diff) | |
download | org.eclipse.ecf-420964163959286162687919d6099b969fc32791.tar.gz org.eclipse.ecf-420964163959286162687919d6099b969fc32791.tar.xz org.eclipse.ecf-420964163959286162687919d6099b969fc32791.zip |
ASSIGNED - bug 310643: [zookeeper][remoteservices] add usage of zookeeper discovery to hello world examples
https://bugs.eclipse.org/bugs/show_bug.cgi?id=310643
Signed-off by wim.jongman@remainsoftware.com
Diffstat (limited to 'examples')
2 files changed, 64 insertions, 1 deletions
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.consumer/products/Hello Service Consumer (zookeeper,r-osgi).product b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.consumer/products/Hello Service Consumer (zookeeper,r-osgi).product new file mode 100644 index 000000000..80d7504ac --- /dev/null +++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.consumer/products/Hello Service Consumer (zookeeper,r-osgi).product @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?pde version="3.5"?> + +<product name="R-OSGi Zookeeper Hello Consumer" uid="org.eclipse.ecf.examples.remoteservices.rosgizookeeperhelloconsumer" application="org.eclipse.ecf.examples.remoteservices.hello.consumer.HelloConsumer" version="1.0.0" useFeatures="false" includeLaunchers="false"> + + + <configIni use="default"> + </configIni> + + <launcherArgs> + <programArgs>-console -consoleLog</programArgs> + <vmArgs>-Dzoodiscovery.autoStart=true; +-Dzoodiscovery.clientPort=2002 +-Dzoodiscovery.flavor=zoodiscovery.flavor.standalone=localhost:2001 +-Xms40m +-Xmx512m</vmArgs> + <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac> + </launcherArgs> + + <windowImages/> + + <launcher> + <solaris/> + <win useIco="false"> + <bmp/> + </win> + </launcher> + + + <vm> + </vm> + + <plugins> + <plugin id="ch.ethz.iks.r_osgi.remote"/> + <plugin id="org.apache.log4j"/> + <plugin id="org.apache.zookeeper"/> + <plugin id="org.eclipse.core.contenttype"/> + <plugin id="org.eclipse.core.jobs"/> + <plugin id="org.eclipse.core.runtime"/> + <plugin id="org.eclipse.ecf"/> + <plugin id="org.eclipse.ecf.discovery"/> + <plugin id="org.eclipse.ecf.examples.remoteservices.hello"/> + <plugin id="org.eclipse.ecf.examples.remoteservices.hello.consumer"/> + <plugin id="org.eclipse.ecf.identity"/> + <plugin id="org.eclipse.ecf.osgi.services.discovery"/> + <plugin id="org.eclipse.ecf.osgi.services.distribution"/> + <plugin id="org.eclipse.ecf.provider"/> + <plugin id="org.eclipse.ecf.provider.r_osgi"/> + <plugin id="org.eclipse.ecf.provider.zookeeper"/> + <plugin id="org.eclipse.ecf.remoteservice"/> + <plugin id="org.eclipse.ecf.sharedobject"/> + <plugin id="org.eclipse.equinox.app"/> + <plugin id="org.eclipse.equinox.common"/> + <plugin id="org.eclipse.equinox.concurrent"/> + <plugin id="org.eclipse.equinox.preferences"/> + <plugin id="org.eclipse.equinox.registry"/> + <plugin id="org.eclipse.osgi"/> + <plugin id="org.eclipse.osgi.services"/> + <plugin id="org.objectweb.asm"/> + </plugins> + + +</product> diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.consumer/src/org/eclipse/ecf/internal/examples/remoteservices/hello/consumer/HelloConsumerApplication.java b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.consumer/src/org/eclipse/ecf/internal/examples/remoteservices/hello/consumer/HelloConsumerApplication.java index 71eb54c19..418dce709 100644 --- a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.consumer/src/org/eclipse/ecf/internal/examples/remoteservices/hello/consumer/HelloConsumerApplication.java +++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.consumer/src/org/eclipse/ecf/internal/examples/remoteservices/hello/consumer/HelloConsumerApplication.java @@ -105,7 +105,7 @@ public class HelloConsumerApplication implements IApplication, // This filter looks for IHello instances that have the // 'service.imported' property set, as specified by OSGi 4.2 // remote services spec (Chapter 13) - return bundleContext.createFilter("(&(" + return bundleContext.createFilter("(|(" + org.osgi.framework.Constants.OBJECTCLASS + "=" + IHello.class.getName() + ")(" + SERVICE_IMPORTED + "=*))"); } |