From 4f6a51d428d96dbb476d8412143748e841993372 Mon Sep 17 00:00:00 2001 From: antelder Date: Mon, 20 Sep 2010 12:32:50 +0000 Subject: Copy trunk samples to sanbox to experiment with renames and moves git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@998905 13f79535-47bb-0310-9956-ffa450edef68 --- .../launcher-shell/src/main/webapp/WEB-INF/web.xml | 48 ++++++++++++++++++++++ .../launcher-shell/src/main/webapp/index.html | 42 +++++++++++++++++++ 2 files changed, 90 insertions(+) create mode 100644 sandbox/samples/running-tuscany/launcher-shell/src/main/webapp/WEB-INF/web.xml create mode 100644 sandbox/samples/running-tuscany/launcher-shell/src/main/webapp/index.html (limited to 'sandbox/samples/running-tuscany/launcher-shell/src/main/webapp') diff --git a/sandbox/samples/running-tuscany/launcher-shell/src/main/webapp/WEB-INF/web.xml b/sandbox/samples/running-tuscany/launcher-shell/src/main/webapp/WEB-INF/web.xml new file mode 100644 index 0000000000..ac1ad1cc8e --- /dev/null +++ b/sandbox/samples/running-tuscany/launcher-shell/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,48 @@ + + + + scashell + + org.apache.tuscany.sca.host.webapp.TuscanyContextListener + + + tuscany + org.apache.tuscany.sca.host.webapp.TuscanyServletFilter + + + + tuscany + /* + + + + ShellServlet + sample.ShellServlet + + + + ShellServlet + /run + + + + index.html + + diff --git a/sandbox/samples/running-tuscany/launcher-shell/src/main/webapp/index.html b/sandbox/samples/running-tuscany/launcher-shell/src/main/webapp/index.html new file mode 100644 index 0000000000..3d41472a46 --- /dev/null +++ b/sandbox/samples/running-tuscany/launcher-shell/src/main/webapp/index.html @@ -0,0 +1,42 @@ + + + +Sample Runtime Shell + + +

It works

+ +

This Web app runs a sample Tuscany runtime shell similar to samples/launcher-shell.
+To see how it works and what configuration commands are supported, just read the Shell program's source code.

+ +

Configuration commands can be provided through a text document served from a Web location, for example:
+http://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/samples/running-tuscany/launcher-shell/scripts/test-start.txt

+ +

To run that particular configuration script just point your Web browser to:
+http://localhost:8080/scashell/run?conf=http://svn.apache.org/repos/asf/tuscany/sca-java-2.x/trunk/samples/running-tuscany/launcher-shell/scripts/test-start.txt
+To run the script again and refresh the runtime shell, just refresh that page in your Web browser. +

+ +

This script starts the Tuscany sample store application. Click here to use that application after you've started it.

+ +

Sample configuration script samples are available in the Tuscany Subversion repository there. + + + -- cgit v1.2.3