From ce9150bd4c4880a4032030213de8626c21764bfd Mon Sep 17 00:00:00 2001 From: rfeng Date: Thu, 16 Jul 2009 06:50:41 +0000 Subject: Update to Equinox 3.5 to take advantage of the hook services API git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@794552 13f79535-47bb-0310-9956-ffa450edef68 --- .../distribution/all/src/main/release/bin/LICENSE | 4 ++-- java/sca/modules/contribution-osgi/pom.xml | 2 +- java/sca/modules/extensibility-equinox/pom.xml | 2 +- java/sca/modules/host-http-osgi/pom.xml | 6 +++--- .../modules/implementation-osgi-runtime/pom.xml | 2 +- java/sca/modules/implementation-osgi/pom.xml | 2 +- java/sca/modules/node-impl-osgi/pom.xml | 10 ++++----- java/sca/pom.xml | 15 +++++++++++++- .../samples/dosgi-calculator-operations/pom.xml | 6 +++--- .../OSGI-INF/sca/calculator-service.bindings | 24 ++++++++++++++++++++++ java/sca/samples/dosgi-calculator/pom.xml | 6 +++--- .../calculator/dosgi/impl/CalculatorActivator.java | 3 +++ java/sca/samples/pom.xml | 7 +++++-- 13 files changed, 66 insertions(+), 23 deletions(-) create mode 100644 java/sca/samples/dosgi-calculator/OSGI-INF/sca/calculator-service.bindings (limited to 'java/sca') diff --git a/java/sca/distribution/all/src/main/release/bin/LICENSE b/java/sca/distribution/all/src/main/release/bin/LICENSE index cc44a9beb0..b6414bd07d 100644 --- a/java/sca/distribution/all/src/main/release/bin/LICENSE +++ b/java/sca/distribution/all/src/main/release/bin/LICENSE @@ -384,8 +384,8 @@ OF THE POSSIBILITY OF SUCH DAMAGE. =============================================================================== The Equinox OSGi Runtime jars; - osgi-3.4.0-v20080605-1900.jar - common-3.4.0-v20080421-2006.jar + osgi-3.5.0-v20090520.jar + common-3.5.0-v20090520-1800.jar services-3.1.200-v20071203.jar Eclipse Public License - v 1.0 diff --git a/java/sca/modules/contribution-osgi/pom.xml b/java/sca/modules/contribution-osgi/pom.xml index 147db9f204..7ec856f3e2 100644 --- a/java/sca/modules/contribution-osgi/pom.xml +++ b/java/sca/modules/contribution-osgi/pom.xml @@ -44,7 +44,7 @@ org.eclipse osgi - 3.4.0-v20080605-1900 + 3.5.0-v20090520 compile diff --git a/java/sca/modules/extensibility-equinox/pom.xml b/java/sca/modules/extensibility-equinox/pom.xml index f360fe7c12..6643dd01d6 100644 --- a/java/sca/modules/extensibility-equinox/pom.xml +++ b/java/sca/modules/extensibility-equinox/pom.xml @@ -37,7 +37,7 @@ org.eclipse osgi - 3.4.0-v20080605-1900 + 3.5.0-v20090520 compile diff --git a/java/sca/modules/host-http-osgi/pom.xml b/java/sca/modules/host-http-osgi/pom.xml index 078caead01..a384ff6c9a 100644 --- a/java/sca/modules/host-http-osgi/pom.xml +++ b/java/sca/modules/host-http-osgi/pom.xml @@ -37,19 +37,19 @@ org.eclipse osgi - 3.4.0-v20080605-1900 + 3.5.0-v20090520 compile org.eclipse.osgi services - 3.1.200-v20071203 + 3.2.0-v20090520-1800 compile org.eclipse.equinox http - 1.0.200-v20080421-2006 + 1.0.300-v20090520-1800 runtime diff --git a/java/sca/modules/implementation-osgi-runtime/pom.xml b/java/sca/modules/implementation-osgi-runtime/pom.xml index 73ebac7e75..24dab87527 100644 --- a/java/sca/modules/implementation-osgi-runtime/pom.xml +++ b/java/sca/modules/implementation-osgi-runtime/pom.xml @@ -50,7 +50,7 @@ org.eclipse osgi - 3.4.0-v20080605-1900 + 3.5.0-v20090520 compile diff --git a/java/sca/modules/implementation-osgi/pom.xml b/java/sca/modules/implementation-osgi/pom.xml index 0d6f2afd7c..a648421425 100644 --- a/java/sca/modules/implementation-osgi/pom.xml +++ b/java/sca/modules/implementation-osgi/pom.xml @@ -37,7 +37,7 @@ org.eclipse osgi - 3.4.0-v20080605-1900 + 3.5.0-v20090520 compile diff --git a/java/sca/modules/node-impl-osgi/pom.xml b/java/sca/modules/node-impl-osgi/pom.xml index 9a0167acb5..75bc2991ef 100644 --- a/java/sca/modules/node-impl-osgi/pom.xml +++ b/java/sca/modules/node-impl-osgi/pom.xml @@ -45,13 +45,13 @@ org.eclipse osgi - 3.4.0-v20080605-1900 + 3.5.0-v20090520 compile org.eclipse.osgi services - 3.1.200-v20071203 + 3.2.0-v20090520-1800 test @@ -59,14 +59,14 @@ org.eclipse.equinox ds - 1.0.0-v20080427-0830 + 1.1.0-v20090601 test org.eclipse.equinox util - 1.0.0-v20080414 + 1.0.100-v20090520-1800 test @@ -100,7 +100,7 @@ org.apache.tuscany.sca tuscany-implementation-osgi 2.0-SNAPSHOT - test + compile diff --git a/java/sca/pom.xml b/java/sca/pom.xml index f1bd69a0ec..f818f795b6 100644 --- a/java/sca/pom.xml +++ b/java/sca/pom.xml @@ -285,7 +285,7 @@ org.apache.tuscany.maven.plugins maven-bundle-plugin - 1.0.2 + 1.0.4-SNAPSHOT true @@ -473,6 +473,7 @@ src/main/resources + + + ${basedir} + + LICENSE + NOTICE + README + META-INF/**/* + OSGI-INF/**/* + + + diff --git a/java/sca/samples/dosgi-calculator-operations/pom.xml b/java/sca/samples/dosgi-calculator-operations/pom.xml index fd08e25e72..add9380c55 100644 --- a/java/sca/samples/dosgi-calculator-operations/pom.xml +++ b/java/sca/samples/dosgi-calculator-operations/pom.xml @@ -54,7 +54,7 @@ org.eclipse.osgi services - 3.1.200-v20071203 + 3.2.0-v20090520-1800 test @@ -62,14 +62,14 @@ org.eclipse.equinox ds - 1.0.0-v20080427-0830 + 1.1.0-v20090601 test org.eclipse.equinox util - 1.0.0-v20080414 + 1.0.100-v20090520-1800 test diff --git a/java/sca/samples/dosgi-calculator/OSGI-INF/sca/calculator-service.bindings b/java/sca/samples/dosgi-calculator/OSGI-INF/sca/calculator-service.bindings new file mode 100644 index 0000000000..65a5a76194 --- /dev/null +++ b/java/sca/samples/dosgi-calculator/OSGI-INF/sca/calculator-service.bindings @@ -0,0 +1,24 @@ + + + + + + \ No newline at end of file diff --git a/java/sca/samples/dosgi-calculator/pom.xml b/java/sca/samples/dosgi-calculator/pom.xml index 2033338434..115dd15003 100644 --- a/java/sca/samples/dosgi-calculator/pom.xml +++ b/java/sca/samples/dosgi-calculator/pom.xml @@ -60,7 +60,7 @@ org.eclipse.osgi services - 3.1.200-v20071203 + 3.2.0-v20090520-1800 @@ -74,14 +74,14 @@ org.eclipse.equinox ds - 1.0.0-v20080427-0830 + 1.1.0-v20090601 test org.eclipse.equinox util - 1.0.0-v20080414 + 1.0.100-v20090520-1800 test diff --git a/java/sca/samples/dosgi-calculator/src/main/java/calculator/dosgi/impl/CalculatorActivator.java b/java/sca/samples/dosgi-calculator/src/main/java/calculator/dosgi/impl/CalculatorActivator.java index ac49cbcb12..8bfa6772da 100644 --- a/java/sca/samples/dosgi-calculator/src/main/java/calculator/dosgi/impl/CalculatorActivator.java +++ b/java/sca/samples/dosgi-calculator/src/main/java/calculator/dosgi/impl/CalculatorActivator.java @@ -59,6 +59,9 @@ public class CalculatorActivator implements BundleActivator { Dictionary props = new Hashtable(); props.put("sca.service", "CalculatorComponent#service-name(Calculator)"); props.put("calculator", "Calculator"); + props.put("osgi.remote.configuration.type", "sca"); + props.put("osgi.remote.configuration.sca.bindings", new String[] {"OSGI-INF/sca/calculator-service.bindings"}); + props.put("osgi.remote.interfaces", new String[] {"*"}); logger.info("Registering " + CalculatorService.class.getName()); CalculatorService calculator = new CalculatorServiceImpl(context); context.registerService(CalculatorService.class.getName(), calculator, props); diff --git a/java/sca/samples/pom.xml b/java/sca/samples/pom.xml index 36e0049d60..55582f903a 100644 --- a/java/sca/samples/pom.xml +++ b/java/sca/samples/pom.xml @@ -56,13 +56,16 @@ implementation-java-calculator binding-ws-calculator - webapps/helloworld webapps/helloworld-bpel webapps/helloworld-jsp webapps/helloworld-stripes - + webapps/helloworld-servlet + -- cgit v1.2.3