It was speculation based on the source of lookup() in ECM.java. I
realized that I'd misunderstood what was going on regarding the handler
being initialized. Rereading it again today it does look like it will
behave exactly as I want. And now that you've confirmed it I can go
merrily on my way. Thanks a lot.

Corey


On Fri, 2002-06-21 at 10:40, Peter Royal wrote:
> On Thursday 20 June 2002 01:18 pm, Corey Jewett wrote:
> > So far everything works great. However, as I will have numerous
> > components that extend BozoComponent. I was checking the source to see
> > how the manager retrieved the datasource pool. My intent was that one
> > pool could be shared across multiple BozoComponents. Instead it appears
> > that because I'm not passing a parentManager to ECM that it behaves like
> > a factory.
> 
> One JdbcDataSource should be shared amongst several components, since it is 
> marked as being ThreadSafe.
> 
> > Am I understanding correctly that every BozoComponent instance will have
> > it's own pool? If so is there a way to retrieve the pool from a 'cache'
> > if it has already been created? Or would I be better off modifying
> > BozoComponent to have a singleton DataSource?
> 
> Every BozoComponent should hook into the same pool, it appears that you are 
> doing everything correctly.
> 
> Can you give some more details about what leads you to believe that there are 
> multiple JdbcDataSource's being created? If there are, its a bug and I'd like 
> to make sure that gets fixed for you.
> 
> If you run the JdbcDataSource with a log level of DEBUG, you should get 
> verbose messages about the creation of JdbcConnection's. One way to 
> positively determine if there are multiple JdbcDataSource's being created is 
> to look for log statements such as "Loading new driver: org.postgresql.Driver"
> 
> thanks.
> -pete
> 
> 
> -- 
> peter royal -> [EMAIL PROTECTED]
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to