You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by andi <my...@yahoo.com> on 2003/06/27 12:35:21 UTC

getting all datasource pools

hi there,

at startup of cocoon i'd like to connect to all
databases configured in cocon.xconf and get data to
configure the system.

I've written a "ThreadSafe,Sevicable" Component for
this task, but i can only get one datasourceconnection
at a time and i have to know the name of the pool.
(this would mean, i needed another configfile, with
all the names of the datasources, which is just 100%
redundant)

Is there a possibility to get all those dbs at once? 

i use:
this.dbSelector = (ComponentSelector)
manager.lookup(DataSourceComponent.ROLE + "Selector");
DataSourceComponent datasource = (DataSourceComponent)
this.dbSelector.select(poolId);

i'd like to get e.g. an Enumerator of all Datasources

any ideas.

TIA

andi

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

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