Running the Tuscany runtime from OSGi


The Tuscany runtime can be run in and OSGi container. 

Running in Equinox

On Windows, run

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

On *Unix, run

cd modules
java -jar osgi-3.5.0-v20090520.jar -configuration ../features/configuration -clean -console

You should see the osgi console:

osgi>

You can run "ss" command under the osgi> to see the status of the bundles:

osgi> ss

Then you can install and start contributions as bundles by doing the following:

osgi> install file:///./path/to/contribution_bundle.jar

For example, on Windows, 

osgi> install file:///c:\path\to\Tuscany\installation\samples\learning-more\contribution-osgi\target\sample-contribution-osgi.jar

Note. This sample contribution contains a bundle activator to fire up the Tuscany runtime. We are not relying on any Tuscany runtime service to detect the installation of the ontribution bundle. 

Running on Felix

See http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html