cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steven Dolg <>
Subject Re: Stand alone Cocoon
Date Fri, 26 Jun 2009 08:38:08 GMT
zzkumar schrieb:
> Hi All,

> I am new to Cocoon. We are planning to use Cocoon for report generation (XML
> + excel template passed through Cocoon = Excel file with values filled in).
> I am able to generate the report when I deploy the cocoon as a web app.
> Now the issue is, I want to integrate cocoon into my existing webapp. By
> integrating I mean, I should use the web.xml of my current web application
> and not the one from cocoon. i.e. every request should go through my old
> web.xml.
> and when I say generate report, it should invoke methods from Cocoon and
> generate reports.
> For ex. I want to have a method like : public Object generateReport(String
> xlsPath, String excelTemplatePath) and this method should invoke classes
> from Cocoon, generate report and return the report.
> Please let me if this is possible. Also please direct me to some documents,
> links on this.

I am strictly speaking about Cocoon 3.0 here:

Yes this is entirely possible. Actually it was one of the goals when 
designing the new version.
And there are people who did exactly what you described above (having a 
web application and using Cocoon  inside it, just like you would use a 
templating engine or an O/R-Mapper)

However there's a catch: It is still an alpha version.

So the basic question is: can you live with an alpha version?
If the answer is NO, then Cocoon 3.0 is not what you want - you might as 
well stop reading this now (I think it will be months before this goes 
into any king of beta phase).

If the answer is YES, then Cocoon 3.0 can probably solve a lot of your 
problems rather easily.
The basic principles are the same as those of Cocoon 2.x and it's rather 
easy to create new pipeline components or modify behaviour the way you 
("Our" students from the TU Vienna do it all the time, even if it's not 
part of their project - apparently they think it's fun)

Cocoon 3.0 provides an API to create pipelines programmatically and use 
them basically everywhere you have Java available.
You can even use the sitemap on top of that if you want to and still use 
Coccon inside your own application like any other non-web framework.

The system is already used in some commercial applications and AFAIK, 
Apache Sling is looking at integrating it too. (Again it's the pipeline 
API that makes certain things possible and interesting).
We are continuously working on it, although this may not be very visible 
or prominent at times.

Documentation is another weak point right now. So there isn't much to 
point you to.
The general idea about Cocoon 3.0 is sketched out here: and a (slightly) more detailed overview is 
ready here
The documentation is for version 3.0.0-alpha-1.

The current trunk contains a lot of changes and extensions and thanks to 
the feedback we got, this version is more consistent, easier to use, and 
more reliable.
IMO a new release should follow rather shortly (1 - 2 months) but maybe 
I'm a bit optimistic on that.

I am not sure whether this is possible at all with Cocoon 2.x.
I guess some of the "older" guys have to answer that.

I hope this makes sense to you.


> thank you in advance.
> Regards,
> Kumar.D

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message