A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/1258.html
Document ID: 1258
Branch: main
Language: default
Name: Overview (unchanged)
Document Type: Cocoon Document (unchanged)
Updated on: 1/3/07 2:19:40 PM
Updated by: Carsten Ziegeler
A new version has been created, state: draft
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 4195 bytes (previous version: 4076 bytes)
Content diff:
(31 equal lines skipped)
<p>This context listener is invoked by the servlet container on startup of
your
web application. By default the configuration for the application context is
--- read from the file "WEB-INF/applicationContext.xml". This is the place to
--- configure the Cocoon components. Cocoon uses the namespace authoring
features of
+++ read from the file "WEB-INF/applicationContext.xml". This is the place to
add
+++ the global Cocoon configuration. Cocoon uses the namespace authoring
features of
Spring 2.0:</p>
<pre><beans xmlns="http://www.springframework.org/schema/beans""
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:util="http://www.springframework.org/schema/util"
--- xmlns:cocoon="http://cocoon.apache.org/core"
--- xmlns:avalon="http://cocoon.apache.org/avalon"
+++ xmlns:configurator="http://cocoon.apache.org/schema/configurator"
+++ xmlns:avalon="http://cocoon.apache.org/schema/avalon"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.0.xsd
--- http://cocoon.apache.org/core
http://cocoon.apache.org/core.xsd
--- http://cocoon.apache.org/avalon
http://cocoon.apache.org/avalon.xsd">
+++ http://cocoon.apache.org/schema/configurator
http://cocoon.apache.org/schema/configurator/cocoon-configurator-1.0.xsd
+++ http://cocoon.apache.org/schema/avalon
http://cocoon.apache.org/schema/avalon/cocoon-avalon-1.0.xsd">
--- <!-- Load all the properties for Cocoon -->
--- <cocoon:settings/>
+++ <!-- Activate Cocoon Spring Configurator -->
+++ <configurator:settings/>
<!-- Load Avalon configurations
If you want to use a different logger than the default log4j logger,
(9 equal lines skipped)
</pre>
<p>The two elements shown above are required to get Cocoon up and running
inside
--- your web application. The first one, "cocoon:settings", initializes the
Cocoon
--- properties mechanism and the Cocoon Spring configuration support. The second
--- element, "avalon:avalon", sets up the Spring-Avalon-Bridge. This bridge
allows
--- you to run Avalon-based components in a Spring container; these Avalon
--- components are configured using the well-known Avalon-configuration files.
And
--- that's it. These two innocent looking statements do a lot of work behind the
--- scenes and add all necessary beans to the Spring application context. Once
the
--- application context is up and running, Cocoon is ready as well. You can
either
--- use the provided servlets to map requests to Cocoon or you can integrate
Cocoon
--- into your web application framework by getting the Cocoon beans from the
Spring
+++ your web application. The first one, "configurator:settings", initializes
the
+++ <a href="daisy:1303">Cocoon Spring-Configurator.</a> The second element,
+++ "avalon:avalon", sets up the Spring-Avalon-Bridge. This bridge allows you
to run
+++ Avalon-based components in a Spring container; these Avalon components are
+++ configured using the well-known Avalon-configuration files. And that's
it.</p>
+++
+++ <p>These two innocent looking statements do a lot of work behind the scenes
and
+++ add all necessary beans to the Spring application context. Once the
application
+++ context is up and running, Cocoon is ready as well. You can either use the
+++ provided servlets to map requests to Cocoon or you can integrate Cocoon into
+++ your web application framework by getting the Cocoon beans from the Spring
application context.</p>
</body>
(1 equal lines skipped)