...
In this folder you'll find the simplest contribution, implemented in Java, that implements the "business logic" of saying hello to a person whose name is supplied as input to the service.
helloworld-webapp
...
Warning | ||
---|---|---|
| ||
It's not at all clear how this is supposed to work once it is in the web container - I have asked on the dev list |
...
running-tuscany
Running something in Tuscany requires one or more contributions, and a method of launching the contributions to make them available as services. In the sections below is described various means of launching contributions into an executing tuscany runtime.
...
The Tuscany runtime can be run in and OSGi container.
Running in Equinox
------------------
On Windows, run
java -jar ..\..\modules\osgi-3.5.0-v20090520.jar -configuration ..\..\features\configuration -clean -console
On *Unix, run
java -jar ../../modules/osgi-3.5.0-v20090520.jar -configuration ../../features/configuration -clean -console
You should see the osgi console:
osgi>
osgi> Jun 22, 2009 1:32:27 PM org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoveryActivator start
INFO: Equinox-based service discoverer is now configured.
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
Note that contribution_bundle.jar will need an activator in order to register the bundle as a SCA contribution
see samples/????
TODO is this still true
Running on Felix
----------------
See http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html
The Tuscany runtime can be run in and OSGi container. There's no specific launcher program to do this, just follow these instructions.
...
On Windows, run
Code Block |
---|
java \-jar ..\..\modules\osgi-3.5.0-v20090520.jar \-configuration ..\..\features\configuration \-clean \-console
|
On *Unix, run
Code Block |
---|
java \-jar ../../modules/osgi-3.5.0-v20090520.jar \-configuration ../../features/configuration \-clean \-console
|
You should see the osgi console:
Code Block |
---|
osgi>
osgi> Jun 22, 2009 1:32:27 PM org.apache.tuscany.sca.extensibility.equinox.EquinoxServiceDiscoveryActivator start
INFO: Equinox-based service discoverer is now configured.
|
You can run "ss" command under the osgi> to see the status of the bundles.
Code Block |
---|
osgi> ss
|
Then you can install and start contributions as bundles by doing the following:
Code Block |
---|
osgi> install file:./path/to/contribution_bundle.jar
|
...
TODO is this still true
Running on Felix
See http://tuscany.apache.org/documentation-2x/running-tuscany-sca-2x-with-equinox-and-felix.html
launcher-shell
...