Home > Apache 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 |
Apache Tuscany Docs 2.x
Running Tuscany SCA 2.x with Equinox and Felix
1. Running Tuscany with EquinoxThe 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 FelixDownload Apache Felix distributionYou 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:
Please download additional bundles into felix-2.0.1\bundle directory:
To run the web console, you need more bundles:
Add Tuscany bundlesCopy all bundles (jars and folders) under the modules directory of Tuscany distribution to felix-2.0.1\load.
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 felixjava -jar bin\felix.jar Install OSGi remote service sample bundles
-> install file:///C:/Tuscany-2.x/java/sca/samples/dosgi-dynamic-calculator/target/sample-dosgi-dynamic-calculator.jar 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.
For more information on Tuscany's implementation of OSGi remote services, see: OSGi Remote Services with Tuscany SCA.ppt |
Bookmark this on Delicious Digg this | Privacy Policy - Copyright © 2003-2010, The Apache Software Foundation, Licensed under ASL 2.0. |