Hi to all,
I'm writing a class whitch implements CronJob for use with the
cocoon-cron-block.
In the execute method I have to perform a select for any datasource
defined in cocoon.xconf.
I've written:
public void execute(String name) {
ServiceSelector selector=null;
try {
selector = (ServiceSelector)
manager.lookup(DataSourceComponent.ROLE+"Selector");
/* I NEED HELP HERE */
this.manager.release(selector);
} catch (ServiceException e) {
e.printStackTrace();
}
}
selector is really an instance of WrapperServiceSelector. Inside the
object there is an ExtendedComponentSelector where a HashTable has an
entry for each datasource deined in cocoon.xconf.
But I do not find any way to get the keys out. If I know the
datasource name I can perform a select, of course. But I *do not* know
the datasource names!
Can anybody help me?
Otherwise I could define datasources in a separate xml file, include
it in cocoon.xconf, read the same file form my class with an
InputStream to get the datasource names and finally select the
connection. But I don't like this "solution" very much.
Thank's for any help,
bye
romano
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]