带注释的 Spring 3 调度 - 看看队列?
大家好,Java 狂热者们,
我们最近在 Spring 3 中从 xdoclet 生成的 XML 文件(quartz)更改为注释驱动的调度。
现在我想看看所有排队的任务和正在运行的任务。但我找不到办法做到这一点。 我想我需要联系执行人?
我希望这不是一个太愚蠢的问题。
提前致谢!
问候, 大卫
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当使用 spring 的 quarts 支持时,您有一个
SchedulerFactoryBean
类型的 bean,它实例化一个Scheduler
。所以你可以简单地使用@Inject Scheduler调度器
When using spring's quarts support, you have a bean of type
SchedulerFactoryBean
, which instantiates aScheduller
. So you can simply use@Inject Scheduller scheduller