Spring 3 scheduling with annotations - Having a look at the queue?
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
精彩评论