Cocoon is based on the Spring 2.0 framework. The Spring Configurator and the Servlet ServiceFramework are two subprojects having Spring as main dependency. It’s important to note that both can be reused outside of Cocoon Core.

The Spring Configurator provides basic support for configuring web applications that make use of Spring. The Servlet Service Framework enables modularization based on the javax.servlet.Servletinterface. Those servlet services are polymorphic.

Cocoon Core provides implementations of a sitemap engine and of pipelines. It also establishes a contract to add modules. The unit of modularization in Cocoon is called blocks.

In particular it makes it easy to support multiple output formats, comes with a JSR-168 compatible Portal implementation and offers continuation based web controller implementations.

Key Features of Apache Cocoon 2.2.0:

Dynamic multi-channel web publishing (see below for the possible datasources and output formats)
· Create static content (automatically) by separating data from view
· Offline generation modes with Cocoon’s own offline facilities: command-line interface (CLI), ant task, bean. Also with Apache Forrest which utilises Cocoon.
· Dynamic document preparation with Apache Forrest, the ‘forrest run’ mode. Use many different data input formats, see the transformed result immediately in the browser.
· Advanced web applications with J2EE integration (with separation of your data, the view and the flow logic –> this really means you can change one of the parts without touching another)
· Develop your company portal using the Cocoon Portal framework
· Support multiple clients, layouts and languages (i18n) without code duplication
· Integrate Cocoon with your existing web applications or use it to put a better face on them (page scraping)
· Add full-text search to any datasource that can be converted to XML (see below)
· Use Cocoon as the base for Enterprise Application Integration (EAI)
· Use Cocoon as the base for your Content Management System (CMS) (see Apache Lenya, Daisy CMS and Hippo CMS)
· Use Cocoon for producing mobile content (mobile phones, PDAs)
· Datawarehouse reporting across multiple formats (see xReporter)

Cocoon 2.2 (stable)

Our latest version of Cocoon is 2.2. The best way to get familiar with Cocoon 2.2 and how to use it together with Maven 2 is the Getting started tutorial. If you follow that path, Maven 2 will take care of downloading all (transitive) dependencies.

However, there is also a Getting Started package that contains a simple Cocoon 2.2 based application that uses Apache Ant as build system.

Artifact Description Download Verify
Cocoon2.2.0 Cocoon Core (pipelines, sitemaps, servlet): sources, binaries, javadocs and docs.




Getting Started2.2.0 A simple web application based on Cocoon 2.2 that makes use of blocks and servlet services. cocoon-getting-started-2.2.0-zip




Post By Gishore J Kallarackal (2,121 Posts)

Gishore J Kallarackal is the founder of techgurulive. The purpose of this site is to share information about free resources that techies can use for reference. You can follow me on the social web, subscribe to the RSS Feed or sign up for the email newsletter for your daily dose of tech tips & tutorials. You can content me via @twitter or e-mail.

Website: → Techgurulive