Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2009-09-25 05:16:46 +0000
committerslewis2009-09-25 05:16:46 +0000
commitc712be7525cf27ea7be614687f77b64c2651cb38 (patch)
treee69b6d37d79cde1d6c0fc47ea1b108655c22ba17 /examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host
parenta26d3769dda34bf5a39e6cd5af3198864c892d90 (diff)
downloadorg.eclipse.ecf-c712be7525cf27ea7be614687f77b64c2651cb38.tar.gz
org.eclipse.ecf-c712be7525cf27ea7be614687f77b64c2651cb38.tar.xz
org.eclipse.ecf-c712be7525cf27ea7be614687f77b64c2651cb38.zip
Added products for both r-osgi and generic provider for hello example host and consumer
Diffstat (limited to 'examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host')
-rw-r--r--examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/Hello Service Host (generic).product57
-rw-r--r--examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/Hello Service Host (r-osgi).product (renamed from examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/Hello Service Host.product)0
-rw-r--r--examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/build.properties3
-rw-r--r--examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/Activator.java3
4 files changed, 61 insertions, 2 deletions
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/Hello Service Host (generic).product b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/Hello Service Host (generic).product
new file mode 100644
index 000000000..a0030e1a8
--- /dev/null
+++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/Hello Service Host (generic).product
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?pde version="3.5"?>
+
+<product application="org.eclipse.ui.ide.workbench" useFeatures="false" includeLaunchers="false">
+
+ <configIni use="default">
+ </configIni>
+
+ <launcherArgs>
+ <programArgs>-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -console</programArgs>
+ <vmArgs>-Declipse.ignoreApp=true -Dosgi.noShutdown=true
+-DcontainerType=ecf.generic.server</vmArgs>
+ <vmArgsMac>-XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts</vmArgsMac>
+ </launcherArgs>
+
+ <launcher>
+ <solaris/>
+ <win useIco="false">
+ <bmp/>
+ </win>
+ </launcher>
+
+ <vm>
+ </vm>
+
+ <plugins>
+ <plugin id="javax.servlet"/>
+ <plugin id="org.eclipse.core.jobs"/>
+ <plugin id="org.eclipse.core.runtime.compatibility.registry" fragment="true"/>
+ <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.host"/>
+ <plugin id="org.eclipse.ecf.identity"/>
+ <plugin id="org.eclipse.ecf.osgi.services"/>
+ <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.jmdns"/>
+ <plugin id="org.eclipse.ecf.provider.remoteservice"/>
+ <plugin id="org.eclipse.ecf.remoteservice"/>
+ <plugin id="org.eclipse.ecf.sharedobject"/>
+ <plugin id="org.eclipse.ecf.ssl" fragment="true"/>
+ <plugin id="org.eclipse.equinox.common"/>
+ <plugin id="org.eclipse.equinox.concurrent"/>
+ <plugin id="org.eclipse.equinox.registry"/>
+ <plugin id="org.eclipse.osgi"/>
+ <plugin id="org.eclipse.osgi.services"/>
+ </plugins>
+
+ <configurations>
+ <plugin id="org.eclipse.ecf.examples.remoteservices.hello.host" autoStart="true" startLevel="0" />
+ <plugin id="org.eclipse.equinox.common" autoStart="true" startLevel="2" />
+ <plugin id="org.eclipse.osgi" autoStart="true" startLevel="-1" />
+ </configurations>
+
+</product>
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/Hello Service Host.product b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/Hello Service Host (r-osgi).product
index df22982d4..df22982d4 100644
--- a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/Hello Service Host.product
+++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/Hello Service Host (r-osgi).product
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/build.properties b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/build.properties
index aeae97b35..05515c5cf 100644
--- a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/build.properties
+++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/build.properties
@@ -7,4 +7,5 @@ bin.includes = META-INF/,\
src.includes = about.html,\
bundle.properties,\
META-INF/,\
- Hello Service Host.product
+ Hello Service Host (r-osgi).product,\
+ Hello Service Host (generic).product
diff --git a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/Activator.java b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/Activator.java
index 426accbe1..b6de9da79 100644
--- a/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/Activator.java
+++ b/examples/bundles/org.eclipse.ecf.examples.remoteservices.hello.host/src/org/eclipse/ecf/internal/examples/remoteservices/hello/host/Activator.java
@@ -14,6 +14,7 @@ import org.osgi.util.tracker.ServiceTracker;
public class Activator implements BundleActivator, IDistributionConstants {
+ private String containerType = System.getProperty("containerType","ecf.r_osgi.peer");
private BundleContext context;
private ServiceTracker containerManagerServiceTracker;
private ServiceRegistration helloRegistration;
@@ -26,7 +27,7 @@ public class Activator implements BundleActivator, IDistributionConstants {
this.context = context;
// Create R-OSGi Container
IContainerManager containerManager = getContainerManagerService();
- containerManager.getContainerFactory().createContainer("ecf.r_osgi.peer");
+ containerManager.getContainerFactory().createContainer(containerType);
Properties props = new Properties();
// add OSGi service property indicating this

Back to the top