Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

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

To run the web console, you need more bundles:

...

  • 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

Panel

java -jar bin\felix.jar

Install OSGi remote service sample bundles

Image Added

Panel

http://svn.apache.org/repos/asf/tuscany/java/sca/samples/dosgi-dynamic-calculator/dosgi-calculator.png
-> install file:///C:/Tuscany-2.x/java/sca/samples/dosgi-dynamic-calculator/target/sample-dosgi-dynamic-calculator.jarImage Removed
Bundle ID: 205
-> start 205
-> install file:///C:\Tuscany-2.x/java/sca/samples/dosgi-dynamic-calculator-operations/target/sample-dosgi-dynamic-calculator-operations.jarImage Removed
Bundle ID: 206
-> start 206

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

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

Note
titleA 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