开发者

canceling timers during weblogic shutdown

i have an EAR project which runs on weblogic

i have some timers in my application

and i want to cancel them when i redeploy my EAR project.

I have tried using PhaseL开发者_如何转开发istener but i could not access to my web module classes in phase listener.

how could i do this task?

thanks in advance


I did this by creating a servlet that implements ServletContextListener. I start the timer in the contextInitialized method, and stop it in the contextDestroyed method.


You can manually cancel the jobs server by server. In Weblogic console -> select server -> control -> jobs

select the job(s) to cancel.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜