开发者

Spring 3 scheduling with annotations - Having a look at the queue?

开发者 https://www.devze.com 2023-04-10 19:02 出处:网络
Hello fellow Java fanatics, We\'ve recently changed from xdoclet generated XML files (quartz) to annotation driven scheduling in spring 3.

Hello fellow Java fanatics,

We've recently changed from xdoclet generated XML files (quartz) to annotation driven scheduling in spring 3.

Now i'd like to have a look at all the queued tasks and running tasks. But i can not find a way of doing this. I 开发者_运维技巧presume that i would need to get hold of the executor?

I hope this isn't too much of dumb question.

Thanks in advance!

Greetings, David


When using spring's quarts support, you have a bean of type SchedulerFactoryBean, which instantiates a Scheduller. So you can simply use @Inject Scheduller scheduller

0

精彩评论

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

关注公众号