I'm not sure what's the problem in your case, but I think it's OJB. The connection/pooling stuff needs some refactoring before 1.1 ;-)
In your previous mail you said
> Now, to get at the connection factory i use:
>
> ConnectionFactoryFactory.getInstance().createConnectionFactory()
>
> Although the method is called create - it doesnt create one if one has already been created.
>
>>From what i can make out of ConnectionFactoryPooledImpl, releaseAllResources() should release all connections.
>
this will not work, because this creates a new ConnectionFactory instance.
You can try to do the following workaround (maybe there is a typo, I don't check this):
((ConnectionManagerImpl)broker.serviceConnectionManager()).getUnderlyingConnectionFactory().releaseAllResources()
This should free all connections of the associated DB.
regards, Armin
Daniel Perry wrote:
AHHHHHHH going mad. I think i know what's happeneing. I dont think there's a problem with OJB afterall.....
I'm storing objects with proxied collections in an HTTPSession. Am i right in thinking that these will have references that will cause the database to maintain connections even if the connection pool is closed?
Thanks, Daniel.
----- Original Message ----- From: "Daniel Perry" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Thursday, January 08, 2004 5:20 PM
Subject: ConnectionFactoryPooledImpl -> releaseAllResources
The releaseAllResources method in ConnectionFactoryPooledImpl is not releaseing database connections.
I've been trying to debug it, but dont understand how the objectpool
works,
and am now stumped.
This is causing big problems for my app as i have an embedded hsqldb which needs to be released so another app can connect to it.
Thanks for any help,
Daniel.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
