cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Barth <lba...@hachette-livre.fr>
Subject Re: Dynamic connection to databases
Date Mon, 14 Mar 2005 08:05:20 GMT
Hi,

You can use <esql:driver>, <esql:dburl>, <esql:username>and  
<esql:password> instead of <esql:connection>.

You can have a  little logic to  retrieve the various values according 
to the client.

Regards,
Lionel

Yves Vindevogel a ecrit le 11/03/05 21:03:

> Hi,
>
> I have several clients in a webapp.  Each client has a seperate 
> database, but all databases are made with the same script, so the 
> structure is identical, only the records vary.
>
> When I want Cocoon to connect to a database, I make an entry in my 
> cocoon.xconf file, in the datasources.  Then, in ESQL, I can connect 
> giving the pool name ...
>
> Is there a way I can avoid adding the pool in the cocoon.xconf file.
>
> Problem is that I need to restart Tomcat all the time to get this file 
> read and my pool available, but then I'm shutting down other customers 
> too (ok, just a few seconds, ...) and that's what I want to avoid.
>
> If this is not possible, can I make an entry in some sort of file and 
> have my config up again without having to restart the system ?
>
> Yves
>
>
> ---------------------------------------------------------------------
> 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