on 9/1/2000 12:12 PM, "Paul O'Leary" <[EMAIL PROTECTED]> wrote:

> I don't have time to run this down today but this behavior is most likely
> caused by DBBroker's singleton implementation.
> 
> DBBroker.getInstance caches a global instance of DBBroker in a class static
> variable.  Since I assume that DBBroker is loaded as a system class, unless
> the VM instance is cycled you'll always be looking at the same copy of the
> class info and, therefore, the same static variable.
> 
> If this is a serious problem, one solution may be to have an explicit
> tear-down of the connection pool when Turbine shuts down.  Probably want to
> do this anyway because, as I noted in a previous mail, the pool currently
> shuts itself down in DBBroker's finalize() method which is a bad idea.
> 
> I'll have some more time soon to look at this in more detail...
> cheers,
> PaulO.

That is a very good point. My advice is to ALWAYS load Turbine in the
context classloader, not the system class laoder.

-jon

-- 
http://scarab.tigris.org/    | http://noodle.tigris.org/
http://java.apache.org/      | http://java.apache.org/turbine/
http://www.working-dogs.com/ | http://jakarta.apache.org/velocity/
http://www.collab.net/       | http://www.sourcexchange.com/




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to