cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boris Goldowsky <bgoldow...@cast.org>
Subject Re: Database connection by cocoon 2.2
Date Thu, 05 Jun 2008 17:57:06 GMT
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



On Thu, 2008-06-05 at 18:33 +0200, Johannes Hoechstaedter wrote:
> Hi,
> 
> I do my first experiences in cocoon, and want to create a database 
> webapplication which connects to a database. I did some first steps to a 
> database application. Is there a complete how to, to etablish a database 
> connection (for read and write access) by cocoon 2.2?
> 
> What I already did:
> 
> * I did all steps for a first cocoon application which are described in 
> http://cocoon.apache.org/2.2/1159_1_1.html . That works.
> * The I added a file databases-driver.properties with the path of the 
> driver into META_INF/cocoon/properties, as described in the migration 
> guide (http://cocoon.apache.org/2.2/blocks/databases/1.0/1409_1_1.html).
> * The I added the dependency for cocoon-databases-impl into my pom.xml 
> as described in the documentation about the block 
> http://cocoon.apache.org/2.2/blocks/databases/1.0/1437_1_1.html .
> 
> But I have not managed to etablish a connection.
> 
> There are some for me quite understandable descriptions for cocoon 2.1 
> on http://cocoon.apache.org/2.1/developing/datasources.html . But I 
> don't know if these are good for 2.2.
> 
> Maybe some more informations are necessary: The application should be 
> run on tomcat, and manage a connection to a mysql or oracle database.
> 
> Thank you for every help in advance.
> Johannes
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message