开发者

Control TimerTask on java server

开发者 https://www.devze.com 2023-02-12 08:01 出处:网络
I have ~10 TimerTask executed on Weblogic server. What is a best way to control execution of these task (stop , run , state) from e.g. servlet in the same application.

I have ~10 TimerTask executed on Weblogic server.

What is a best way to control execution of these task (stop , run , state) from e.g. servlet in the same application.

I need solution for java version 1.4. I know how to make simple manager with JND开发者_如何学JAVAI + TimerTask but i want any standart solution, not reenvent wheel.

Thanks.


You could take a look at the Quartz scheduler. Either to use it to replace your TimerTasks with Jobs or to get ideas. Not sure if the latest versions run on Java 1.4 but some of the older ones should.

0

精彩评论

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

关注公众号