From b104a230e9861c324f83abaa8b60c0de7060e259 Mon Sep 17 00:00:00 2001 From: slaws Date: Tue, 6 Sep 2011 10:43:37 +0000 Subject: TUSCANY-3938 - Correct sample documentation git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1165597 13f79535-47bb-0310-9956-ffa450edef68 --- .../trunk/samples/running-tuscany/osgi/README.html | 70 +++++++++ .../trunk/samples/running-tuscany/osgi/README.odt | Bin 15539 -> 15611 bytes .../samples/running-tuscany/running-tuscany.html | 160 ++++++++++++++------- .../samples/running-tuscany/running-tuscany.odt | Bin 45492 -> 46251 bytes .../running-tuscany_html_m65f05d55.png | Bin 0 -> 17992 bytes 5 files changed, 180 insertions(+), 50 deletions(-) create mode 100644 sca-java-2.x/trunk/samples/running-tuscany/osgi/README.html create mode 100644 sca-java-2.x/trunk/samples/running-tuscany/running-tuscany_html_m65f05d55.png (limited to 'sca-java-2.x/trunk') diff --git a/sca-java-2.x/trunk/samples/running-tuscany/osgi/README.html b/sca-java-2.x/trunk/samples/running-tuscany/osgi/README.html new file mode 100644 index 0000000000..367b8170a6 --- /dev/null +++ b/sca-java-2.x/trunk/samples/running-tuscany/osgi/README.html @@ -0,0 +1,70 @@ + + + + + + + + + + + + +

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

+


+

+


+

+


+

+ + \ No newline at end of file diff --git a/sca-java-2.x/trunk/samples/running-tuscany/osgi/README.odt b/sca-java-2.x/trunk/samples/running-tuscany/osgi/README.odt index 9b889215c9..5fc0091d0e 100644 Binary files a/sca-java-2.x/trunk/samples/running-tuscany/osgi/README.odt and b/sca-java-2.x/trunk/samples/running-tuscany/osgi/README.odt differ diff --git a/sca-java-2.x/trunk/samples/running-tuscany/running-tuscany.html b/sca-java-2.x/trunk/samples/running-tuscany/running-tuscany.html index 133948e057..87abb61049 100644 --- a/sca-java-2.x/trunk/samples/running-tuscany/running-tuscany.html +++ b/sca-java-2.x/trunk/samples/running-tuscany/running-tuscany.html @@ -1,50 +1,110 @@ - - - -- no title specified

+ + + + + + + + + + + +


+

Starting the Tuscany SCA Runtime

+


+

+

How you run the Tuscany runtime, load +contributions and start composites depends on what environment you're +running in and what you're trying to achieve. For example, if you +just want to try out some samples then you may want to run the +Tuscany runtime from the command line using the Tuscany shell or from +Maven or Ant. If on the other hand you want Tuscany to run in a +WebApp, in OSGi or you want to debug the runtime in an IDE like +Eclipse different approaches are required.

+


+

+

The samples in this directory show +various ways in which you can start Tuscany.

+


+

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+


+

+
+


+

+
+

command-line

+
+

Deploy a contribution from the command line using the Tuscany + Shell without writing any code

+
+

eclipse

+
+

Deploy and debug a contribution project from the Eclipse IDE

+
+

jse

+
+

Deploy a contribution from a simple Java program

+
+

junit

+
+

Deploy a contribution from a JUnit test case

+
+

ant

+
+

Deploy a contribution from an Ant script

+
+

osgi

+
+

Start the Tuscany runtime in OSGi and install a contribution

+
+


+

+


+

+ + \ No newline at end of file diff --git a/sca-java-2.x/trunk/samples/running-tuscany/running-tuscany.odt b/sca-java-2.x/trunk/samples/running-tuscany/running-tuscany.odt index 98ea7cc789..039ac00408 100644 Binary files a/sca-java-2.x/trunk/samples/running-tuscany/running-tuscany.odt and b/sca-java-2.x/trunk/samples/running-tuscany/running-tuscany.odt differ diff --git a/sca-java-2.x/trunk/samples/running-tuscany/running-tuscany_html_m65f05d55.png b/sca-java-2.x/trunk/samples/running-tuscany/running-tuscany_html_m65f05d55.png new file mode 100644 index 0000000000..ad6ba6b202 Binary files /dev/null and b/sca-java-2.x/trunk/samples/running-tuscany/running-tuscany_html_m65f05d55.png differ -- cgit v1.2.3