notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1095 - in trunk/main/central/src/docs/metro: concepts tasks/components
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1095 - in trunk/main/central/src/docs/metro: concepts tasks/components
- Date: Wed, 15 Feb 2006 03:38:31 +0100
Author: mcconnell
Date: 2006-02-15 03:38:14 +0100 (Wed, 15 Feb 2006)
New Revision: 1095
Modified:
trunk/main/central/src/docs/metro/concepts/index.xml
trunk/main/central/src/docs/metro/tasks/components/parts.xml
Log:
fix mistake in docshousekeeping
Modified: trunk/main/central/src/docs/metro/concepts/index.xml
===================================================================
--- trunk/main/central/src/docs/metro/concepts/index.xml 2006-02-14
13:04:57 UTC (rev 1094)
+++ trunk/main/central/src/docs/metro/concepts/index.xml 2006-02-15
02:38:14 UTC (rev 1095)
@@ -16,7 +16,7 @@
</p>
<p>
- Metro is an IOC <a href="ioc.html">IOC</a> Container
+ Metro is an <a href="ioc.html">IOC</a> Container
that handles and deployment of component-based applications. Beyond
this Metro
delivers pure framework independent component-driven <a
href="ioc.html">Adaptive
Context</a> support backed by an <a href="management.html">Active
State</a>,
Modified: trunk/main/central/src/docs/metro/tasks/components/parts.xml
===================================================================
--- trunk/main/central/src/docs/metro/tasks/components/parts.xml
2006-02-14 13:04:57 UTC (rev 1094)
+++ trunk/main/central/src/docs/metro/tasks/components/parts.xml
2006-02-15 02:38:14 UTC (rev 1095)
@@ -36,50 +36,84 @@
<section name="Example">
<p>
- The following component definition has a parts element containing
- two nested component definitions. The top-level component is defining
- a HTTP server. The two internal parts are HTTP context handlers. The
- first component is a static content handler presenting the contents of
- DPML documents under the context <tt>/docs</tt>. The second component
- is establishing a servlet to handle requests for the context <tt>/</tt>
- relative to the resource base directory
<tt>${dpml.data}/temp/http/context</tt>.
+ The following component defines an HHTP server deployment
+ profile made up of a collection in internal parts.
</p>
<pre><![CDATA[
- <component xmlns="metro" type="net.dpml.web.server.Server"
lifestyle="singleton">
+ <target name="build" depends="standard.build">
+
+ <depot:plugin uri="link:plugin:dpml/metro/dpml-metro-tools" urn="metro"/>
+
+ <component xmlns="metro" type="net.dpml.http.Server"
lifestyle="singleton">
<parts>
- <component key="context" type="net.dpml.web.server.ContextHandler">
+ <!--
+ Add a select channel connector to 8080.
+ -->
+ <component key="plain" type="net.dpml.http.SelectChannelConnector">
<context>
- <entry key="server" validate="false"/>
- <entry key="resourceBase" value="${dpml.share}/docs"/>
- <entry key="contextPath" value="/docs"/>
- <entry key="handler" class="net.dpml.web.server.ResourceHandler">
- <value value="resources"/>
- <value value="/"/>
- </entry>
+ <entry key="port" value="8080"/>
+ <entry key="maxIdleTime" value="50000"/>
+ <entry key="acceptors" value="10"/>
</context>
</component>
- <component key="servlets" type="net.dpml.web.server.ContextHandler">
+ <!--
+ Add a SSL connector to 8443.
+ -->
+ <component key="ssl" type="net.dpml.http.SslSocketConnector">
<context>
- <entry key="server" validate="false"/>
- <entry key="resourceBase"
value="${dpml.data}/temp/http/context"/>
+ <entry key="port" value="8443"/>
+ <entry key="maxIdleTime" value="30000"/>
+ <entry key="keystore"
value="local:keystore:dpml/planet/http/jetty"/>
+ <entry key="password"
value="OBF:1vny1zlo1x8e1vnw1vn61x8g1zlu1vn4"/>
+ <entry key="keyPassword" value="OBF:1u2u1wml1z7s1z7a1wnl1u2g"/>
+ </context>
+ </component>
+ <!--
+ Add a user realm.
+ -->
+ <component key="realm" type="net.dpml.http.HashUserRealm">
+ <context>
+ <entry key="name" value="Test Realm"/>
+ <entry key="URI"
value="local:properties:dpml/planet/http/realm"/>
+ </context>
+ </component>
+ <!--
+ Add a web application.
+ -->
+ <component key="webapp" type="net.dpml.http.WebAppContextHandler">
+ <context>
<entry key="contextPath" value="/"/>
- <entry key="handler" class="net.dpml.web.server.ServletHandler">
- <array class="net.dpml.web.server.ServletHolder">
- <value class="net.dpml.web.server.ServletHolder">
- <value value="hello"/>
- <value value="org.mortbay.jetty.servlet.DefaultServlet"/>
- </value>
- </array>
- <array class="net.dpml.web.server.ServletMapping">
- <value class="net.dpml.web.server.ServletMapping">
- <value value="hello"/>
- <value value="/"/>
- </value>
- </array>
- </entry>
+ <entry key="war"
value="link:war:dpml/planet/http/dpml-http-app"/>
</context>
</component>
+ <!--
+ Creation of a HTTP server configured to present static content in
+ the ${dpml.share}/docs directory.
+ -->
+ <component key="context" type="net.dpml.http.ResourceContextHandler">
+ <context>
+ <entry key="resourceBase" value="$${dpml.share}/docs"/>
+ <entry key="contextPath" value="/docs"/>
+ </context>
+ </component>
+ <!--
+ Add an experimental servlet context.
+ -->
+ <component key="servlets" type="net.dpml.http.ServletContextHandler">
+ <context>
+ <entry key="resourceBase" value="$${dpml.data}"/>
+ <entry key="contextPath" value="/data"/>
+ </context>
+ <configuration>
+ <servlets>
+ <servlet name="data"
class="org.mortbay.jetty.servlet.DefaultServlet"/>
+ </servlets>
+ <mappings>
+ <map servlet="data" path="/"/>
+ </mappings>
+ </configuration>
+ </component>
</parts>
</component>
]]></pre>
- r1095 - in trunk/main/central/src/docs/metro: concepts tasks/components, mcconnell at BerliOS, 02/14/2006
Archive powered by MHonArc 2.6.24.