Subject Shutdown / Join
Author Steffen Heil (Mailinglisten)
Hi


I am using org.firebirdsql.pool.FBWrappingDataSource.
When I stop the pool using dataSource.shutdown(); it will stop, but the IdleRemover thread seems to stay for some time.
This leads to a warning in tomcat:

WARNING: The web application [ROOT] appears to have started a thread named [Pool //127.0.0.1//opt/database/osiris4.fdb idleRemover] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
java.lang.Thread.sleep(Native Method)
org.firebirdsql.pool.PooledConnectionQueue$IdleRemover.run(PooledConnectionQueue.java:571)
java.lang.Thread.run(Thread.java:745)


I suspect that happens because the thread has not stopped yet, but will do so soon (as we had no related memory leaks as far as we know).
However, I would really like to just wait until that thread stops.
Is there any other way than reflection to wait for that thread to stop? Or manually stop it?


Best regards,
Steffen



[Non-text portions of this message have been removed]