You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by me...@assetmanagement.natexis.fr on 2003/05/27 17:02:51 UTC
pluginning my datasources
hi all,
I would like to use DataSource using DBCP api to handle
my database connections. For this purpose,
I want to define an xml config file(named pool.xml) that
I would parse using the Digester component.
At the end, A DataSourcePlugin would be defined to process
these tasks in the order below.
1) parse the pool.xml config file using Digester.
2) read all parameters needed to instantiate DataSources (using DBCP
factory).
many DataSources could be defined in the same file.
3) store DataSources in Context Factory so as to be able to retrieve them
via JNDI.
any idea, suggestion for each step would be appreciated.
Meissa
L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.
The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is prohibited.
If you are not the intended recipient of this message, then please delete it and
notify the sender.
Re: pluginning my datasources
Posted by Mark Lowe <ma...@talk21.com>.
unless your plugin has to do any spectacular i wouldn't go down this
path. you can defined keyed datasources in struts config, but i prefer
defining datasources in web.xml. i'm in the process of getting more to
grips with torque, but i haven't got to the stage of having any
particular recommendations.
you could just organise you settings in a separate config file if
that's your main aim...
On Tuesday, May 27, 2003, at 17:02 Europe/Rome,
meissa.Sakho@assetmanagement.natexis.fr wrote:
>
> hi all,
>
> I would like to use DataSource using DBCP api to handle
> my database connections. For this purpose,
> I want to define an xml config file(named pool.xml) that
> I would parse using the Digester component.
>
> At the end, A DataSourcePlugin would be defined to process
> these tasks in the order below.
>
> 1) parse the pool.xml config file using Digester.
>
> 2) read all parameters needed to instantiate DataSources (using DBCP
> factory).
> many DataSources could be defined in the same file.
>
> 3) store DataSources in Context Factory so as to be able to retrieve
> them
> via JNDI.
>
> any idea, suggestion for each step would be appreciated.
>
> Meissa
>
>
> L'integrite de ce message n'etant pas assuree sur internet, Natexis
> Banques Populaires ne peut etre tenu responsable de
> son contenu. Toute utilisation ou diffusion non autorisee est
> interdite. Si vous n'etes pas destinataire de ce message, merci de le
> detruire et d'avertir l'expediteur.
>
> The integrity of this message cannot be guaranteed
> on the Internet. Natexis Banques Populaires can not therefore be
> considered responsible for the contents.Any unauthorized use or
> dissemination is prohibited.
> If you are not the intended recipient of this message, then please
> delete it and
> notify the sender.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org