cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Ng" <>
Subject FW: Database component help
Date Mon, 17 Jun 2002 13:26:42 GMT
I think I should ask my question a little more clearly.

Is it possible to create an Excalibur component and add it to the
component manager on the fly, after the component manager has already
been initialized?

Or can components only be created and added to the component manager
during startup time?



> -----Original Message-----
> From: Stephen Ng 
> Sent: Friday, June 14, 2002 4:50 PM
> To: ''
> Subject: Database component help
> I need to be able to connect to multiple databases on the fly 
> in my app.  I'm using esql.  I'd also like to use connection pooling.
> I tried creating a new Component on the fly 
> (DynamicJdbcDataSource which extends JdbcDataSource), 
> thinking that I could grab the ComponentManager, and add my 
> new component to it, so that my esql sheet could continue to 
> use <esql:pool>, and have it use my component.
> The problem is that I guess I can't add a new component to an 
> already initialized component manager.  So, I guess you are 
> supposed to create a fixed number of (pooled) components at 
> startup time, and that number can't change while the app is running?
> If that is the case, I guess what I need to do is use 
> org.apache.avalon.excalibur.datasource.JdbcConnectionPool, 
> and hack esql to use that instead of the component selector?
> Thanks,
> Steve

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message