After adding some lots of "System.out.println"s to
ConnectionFactoryPooledImpl, it would appear that somewhere OJB is not
returning a connection to the pool.  When releaseAllResources() is called,
it calls close() on the GenericObjectPool.  When this happens,
GenericObjectPool has one active connection, and one idle.  It only calls
the destroyObject method (inner class ConPoolFactory) on idle objects.
Active objects are ignored.

Is there any way of finding what is keeping this active connection?
Any way of forcing all connections to be released?

I would have expected PersistenceBrokerFactory.releaseAllInstances(); to
release all conections back to the pool.

I think for a bodge i might have to add a static list somwhere and record
references to all connections created in ConPoolFactory.  Then in
releaseAllResources() add somthing to kill any connections which are not
closed.

Thanks for any help,
Daniel.


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

Reply via email to