From 200a40b332420f94992eb39a6d0ea1cf1490ffc4 Mon Sep 17 00:00:00 2001 From: coreyg Date: Fri, 21 Nov 2014 09:30:19 +0000 Subject: Adding tuscany's website to their svn repo for svnpubsub git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1640879 13f79535-47bb-0310-9956-ffa450edef68 --- ...ning-tuscany-sca-2x-with-equinox-and-felix.html | 225 +++++++++++++++++++++ 1 file changed, 225 insertions(+) create mode 100644 site/trunk/site-publish/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html (limited to 'site/trunk/site-publish/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html') diff --git a/site/trunk/site-publish/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html b/site/trunk/site-publish/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html new file mode 100644 index 0000000000..d53263ed4b --- /dev/null +++ b/site/trunk/site-publish/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html @@ -0,0 +1,225 @@ + + + + + + + + + + + + + + + Running Tuscany SCA 2.x with Equinox and Felix : Apache Tuscany + + + + + + + + + + + +
+ HomeApache Tuscany Docs 2.x > Index > Development Guides > Running Tuscany SCA 2.x with Equinox and Felix + +
+ + + + + + +
+
+ + + + + + + + +
+  Apache Tuscany Docs 2.x > Index > Development Guides > Running Tuscany SCA 2.x with Equinox and Felix + + Tuscany Home | User List | Dev List | Issue Tracker   +
+ + + + + + +
+
Table of Contents
+
+ + +
+
+ +
+ + +
+
+

1. Running Tuscany with Equinox

+ +

The Tuscany distribution is ready to be started as an Equinox runtime.

+ +

You can simply go into the "modules" directory in the distribution and type the following command:

+ +
+

java -jar osgi-3.5.0-v20090520.jar -clean -console -configuration ..\features\configuration

+
+ +

2. Running Tuscany with Felix

+ +

Download Apache Felix distribution

+

You can download the latest version of Felix distribution from http://felix.apache.org/site/downloads.cgi. Unzip it into a directoy such as felix-2.0.1.

+ +

The following bundles can be found in felix-2.0.1\bundle directory:

+ +
    +
  • org.apache.felix.bundlerepository-1.4.2.jar
  • +
  • org.apache.felix.shell-1.4.1.jar
  • +
  • org.apache.felix.shell.tui-1.4.1.jar
  • +
+ + +

Please download additional bundles into felix-2.0.1\bundle directory:

+ + + +

To run the web console, you need more bundles:

+
    +
  • org.apache.felix.http.api-2.0.2.jar
  • +
  • org.apache.felix.http.base-2.0.2.jar
  • +
  • org.apache.felix.http.bundle-2.0.2.jar
  • +
  • org.apache.felix.http.jetty-2.0.2.jar
  • +
  • org.apache.felix.metatype-1.0.4.jar
  • +
  • org.apache.felix.prefs-1.0.4.jar
  • +
  • org.apache.felix.scr-1.0.8.jar
  • +
  • org.apache.felix.eventadmin-1.0.0.jar
  • +
  • org.apache.felix.webconsole-2.0.0.jar
  • +
+ + +

Add Tuscany bundles

+

Copy all bundles (jars and folders) under the modules directory of Tuscany distribution to felix-2.0.1\load.
+Remove the following Equinox jars from felix-2.0.1\load:

+ +
    +
  • osgi-3.5.0-v20090520.jar
  • +
  • services-3.2.0-v20090520-1800.jar
  • +
  • common-3.5.0-v20090520-1800.jar
  • +
+ + +

Alternatively, Tuscany also provides aggregate jars which simplify the use of Tuscany by minimizing the number of jars required. For this exercise the single base jar includes everything necessary so that single jar can be used in the Felix bundle directory. The releases of this jar can be found in the Maven repository here or the latest development snaphosts here.

+ +

Start felix

+
+

java -jar bin\felix.jar

+
+ + +

Install OSGi remote service sample bundles

+

+ + +

Now, the distributed OSGi calculator is available as a Web service at http://rfengt61p:8086/CalculatorService. You can see the WSDL in a browser with URL: http://rfengt61p:8086/CalculatorService?wsdl.

+ +

You can now use a web service client such as Eclipse Web Service explorer to invoke the calculator.

+ +
A JAX-WS client
You can download a JAX-WS client for the calculator sample and run:
+java -jar sample-calculator-jaxws-client.jar expression
+The expression can be like 1.0+2.0, 2.0/1.0, 3.5-2.0, or 1.0x2.0
+ +

For more information on Tuscany's implementation of OSGi remote services, see: OSGi Remote Services with Tuscany SCA.ppt

+
+ +
+
+
+ + + + + + + +
+ + + \ No newline at end of file -- cgit v1.2.3