Hi Roland,

Ribi Roland wrote:
Hi

We use OJB in servlets. Now I discovered that the Connections to the oracle
DB arn't closed correctly at servlet shutdown. They stay open and after a number of restarts of the servlets I can't
connect to oracle because there are to many open connections.


Which method does I need to call to close all the open connections to any
DB?

I would like to implement this in the destroy-mehtod of the servlet.


Try ConnectionFactoryFactory.getInstance().createConnectionFactory().releaseAllResources()


Not really smart, but give it a try. Till 1.1 we will get rid of all singletons, so this section will be easier to control in future.

regards,
Armin


Roland Ribi

---------------------------------------------------------------------
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]



Reply via email to