
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1195431 13f79535-47bb-0310-9956-ffa450edef68
37 lines
1.3 KiB
Text
37 lines
1.3 KiB
Text
1/ Download latest SNAPSHOT Tuscany build
|
|
|
|
https://builds.apache.org/job/Tuscany-2x/ws/sca-2x/distribution/all/target/apache-tuscany-sca-all-2.0-SNAPSHOT.zip
|
|
|
|
2/ Unzip somewhere convenient (TUSCANY_ROOT)
|
|
|
|
3/ Fire up Tuscany in OSGi
|
|
|
|
e.g.
|
|
|
|
cd TUSCANY_ROOT/modules
|
|
java -jar osgi-3.5.0-v20090520.jar -configuration ..\features\configuration -clean -console
|
|
|
|
4/ Create a contribution that will run in Tuscany in OSGi
|
|
|
|
see http://svn.apache.org/repos/asf/tuscany/sandbox/slaws/jms-osgi/
|
|
|
|
I've started making a simple sample. At the moment this is just a bundle contribution that has a
|
|
calculator composite application which is implemented with Java classes rather than another bundle.
|
|
|
|
The sample is kicked off by a bundle activator when the bundle is started.
|
|
|
|
I'm having some issue with a SAX parser so need to fix that before enhancing the sample to include
|
|
implementation.osgi.
|
|
|
|
5/ Install the contribution bundle into OSGi
|
|
|
|
osgi> install file:///./path/to/sample-jms-osgi.jar
|
|
Bundle id is 266
|
|
osgi> start 266
|
|
|
|
5/ Fire a message into JMS
|
|
|
|
At the moment the sample fires a message into JMS using an SCA reference. If that message needed to come from
|
|
elsewhere then manual configuration of ActiveMQ is likely required which is outside the scope of this sample.
|
|
|
|
|