blob: b9b77832bf5fd09365cb173b5d67aa07a37146d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
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.
|