cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Re: Database connection by cocoon 2.2
Date Fri, 06 Jun 2008 10:53:49 GMT
Good question!  The "official and best" way is to use Hibernate and Spring;
this will, IMO, mean writing *lots* of code. You can use flowscript instead,
for simple cases, but be warned that many here will point out the potential
flaws in this approach.  
In the 2.1.x series of Cocoon, there was a sample that showed this approach:
eg. see 
and look for "Database access".
I am not sure if you will be able to replicate this in 2.2?
>>> On 2008/06/06 at 10:05, in message <>, Johannes
Hoechstaedter <> wrote:
Good morning Bng,
I know, cocoon is based on spring. But isn't there another possibility 
with cocoon blocks only? There is this database-block. What it is good 
for, when I have to write my own spring application? I want to write as 
less code as possible.
> Johannes -- you may want to search for tutorials on using databases with
> Spring.  My understanding is that with Cocoon 2.2 it is best to have
> Spring configure and manage any database connections.  Then you can add
> Cocoon features (eg, the SQL transformer or whatever) once that is set
> up.
> Bng
To unsubscribe, e-mail: 
For additional commands, e-mail: 

This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice,
and implemented Open Document Format (ODF) standard. 
The full disclaimer details can be found at

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.  MailScanner thanks Transtec Computers for their support.

View raw message