[CONTAINER-28] Web アプリケーションを undeploy した場合に TimeoutManager のスレッドが終了しない Created: 2007-01-12  Updated: 2007-01-16  Resolved: 2007-01-16

Status: Resolved
Project: S2Container
Component/s: S2Container
Affects Version/s: None
Fix Version/s: 2.4.9

Type: Bug Priority: Minor
Reporter: suga Assignee: koichik
Resolution: Fixed Votes: 0
Labels: None
Environment:

Windows
J2SDK 1.5.0_10
Tomcat 5.5.20



 Description   

Web アプリケーションの場合。
ConnectionPoolImpl から一度でもコネクションを取得したあと、このアプリケーションを undeploy しても TimeoutManager のスレッドが終了しないため、正常に undeploy できません。(クラスローダーが残った状態になります)

ConnectionPoolImpl#close() あたりでスレッドを終了させると直ると思います。

利用者側の対策の一例:
ServletContextListener#contextDestroyed() で org.seasar.extension.timer.TimeoutManager.getInstance().stop() を呼べばこのスレッドを止められます。



 Comments   
Comment by koichik [ 2007-01-16 ]

修正しました.

Generated at Wed Apr 09 17:40:38 JST 2025 using Jira 10.5.0#10050000-sha1:9d9d098bb7b67e8dba8da380ba9c3900d82ac3cf.