cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject Re: cocoon and database Connection
Date Tue, 09 Jan 2001 18:43:37 GMT
Matthew Cordes wrote:

> Cocoon itself does nothing, but you can use the turbine connection
> pool to have a pool of persistent connections (see your 
> cocoon.properties file).  In lieu of that you'd need to make at least
> a connection per page (use the pool).

In Cocoon 2, there is a pooled Jdbc Connection facility.
You specify your connection and give it a name in the
cocoon.xconf file (look in the supplied version on how
to do that), and then reference it with the <esql:use-connection>
tag or <sql:use-connection> tag.

The connections are pooled and kept open until the system
shuts down.  It reclaims connections that are not used
when they are no longer needed.

> 
> -matt
> 
> On Tue, Jan 09, 2001 at 12:49:48PM -0500, Piyush Sheth wrote:
> 
>> How does cocoon manage database connection ?
>> Does it establish database connection everytime a document( obviously it has
>> some fields from database )
>>  is requested or the connection is persists once cocoon is initialized and
>> until it is shutdown.
>> 
>> 
>> Piyush.
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
>> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org



Mime
View raw message