From 132aa8a77685ec92bc90c03f987650d275a7b639 Mon Sep 17 00:00:00 2001 From: lresende Date: Mon, 30 Sep 2013 06:59:11 +0000 Subject: 2.0.1 RC1 release tag git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1527464 13f79535-47bb-0310-9956-ffa450edef68 --- .../tomcat-war/src/main/webapp/installer.jsp | 106 +++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 sca-java-2.x/tags/2.0.1-RC1/distribution/tomcat/tomcat-war/src/main/webapp/installer.jsp (limited to 'sca-java-2.x/tags/2.0.1-RC1/distribution/tomcat/tomcat-war/src/main/webapp/installer.jsp') diff --git a/sca-java-2.x/tags/2.0.1-RC1/distribution/tomcat/tomcat-war/src/main/webapp/installer.jsp b/sca-java-2.x/tags/2.0.1-RC1/distribution/tomcat/tomcat-war/src/main/webapp/installer.jsp new file mode 100644 index 0000000000..68fd5101b3 --- /dev/null +++ b/sca-java-2.x/tags/2.0.1-RC1/distribution/tomcat/tomcat-war/src/main/webapp/installer.jsp @@ -0,0 +1,106 @@ + + +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@ page import="org.apache.tuscany.sca.war.Installer" %> + +<% + Installer installer = (Installer) request.getAttribute("installer"); +%> + + + + +

Apache Tuscany Tomcat Integration

+ + The Tuscany Tomcat integration turns Tomcat into an SCA enabled runtime so it can run SCA contributions and SCA-enabled Web Applications. +

+ + Status: Tuscany is + <% if (Installer.isTuscanyHookRunning()) { %> + installed and active + <% } else if (Installer.isRestartRequired()) {%> + installed but Tomcat needs to be restarted + <% } else {%> + not installed + <% }%> + + in Tomcat. +

+ + <% if (!Installer.isTuscanyHookRunning() && !Installer.isRestartRequired()) { %> + Install Tuscany
+ To install Tuscany into Tomcat, click: +

+ +
+
+ <% } else {%> + Uninstall Tuscany
+ If remove Tuscany from Tomcat, click: +
+ +
+
+ <% }%> + +

+
+ + + <% if (installer != null) { %> + <%= installer.getStatus() %> + <% }%> + + + +

+

What does this do?

+ + This Tuscany install makes two updates to Tomcat: + + Those changes cause the Tuscany listener to be called at Tomcat startup and that locates all the Host + defiinitions and patches them to use the TuscanyStandardContext. This enables support for deploying + SCA enabled webapps and plain SCA jar, zip, or folder contributions to the Host in the same way + that .war files are deployed. +

+ The SCA domain used for running the contributions defaults to "vm:default". This can be configured + by using an initilization parameter, most easiliy by defining that parameter in a context.xml file. + The Tomcat file conf/context.xml file defines the global defaults so that can be used for setting the + deafult domain for all SCA contributions. Individual contributions can also use their own context.xml + files to override that default. + See the Tomcat doc for more information on using context.xml files. +

+ An example of setting the domain as a context.xml parameter: +
<Context> +
. . . +
<Parameter name="org.apache.tuscany.sca.defaultDomainURI" value="tribes:myDomain"/> +
. . . +
</Context> +

+ For more information visit the Tuscany website page on Tomcat Integration. +

+ Note also that this is work in progress so is liable to change as Tuscany 2.0 is developed. Feedback is welcome and appreciated so if you've any comments or requests on this Tomcat integration please email dev@tuscany.apache.org. +

+ + + -- cgit v1.2.3