是否可以以声明方式配置非全局侦听器?
是否可以在属性文件中以声明方式(而不是以编程方式)配置(向调度程序注册)非全局作业侦听器,类似于 配置全局监听器?
在此处检查:
编辑: 配置全局作业监听器的示例:
org.quartz.jobListener.NAME.class = com.foo.MyListenerClass
org.quartz.jobListener.NAME.propName = propValue
org.quartz.jobListener.NAME.prop2Name = prop2Value
Is it possible to configure (registering with scheduler) non-global job listeners declaratively in properties file (rather than programmatically) similar to configuring global listeners?
Check here for:
EDIT: Example for configuring a Global JobListener:
org.quartz.jobListener.NAME.class = com.foo.MyListenerClass
org.quartz.jobListener.NAME.propName = propValue
org.quartz.jobListener.NAME.prop2Name = prop2Value
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
同时,我还读到非全局侦听器(并有一个作业/触发器为其侦听器命名)被视为已弃用,并将在 Quartz v2.0 中完全删除。
请查看此处以进一步阅读。
但我仍在寻找/找出是否可以在至少 Quartz v1.8.3(这是我当前使用的版本)中以声明方式配置/注册。
Meantime, I'm also reading that Non-global listeners (and having a job/trigger name its listeners) are considered deprecated and would be completely removed in Quartz v2.0.
Check here on this for further reading.
But still I'm looking/finding out whether this can be configured/registered declaratively in atleast Quartz v1.8.3, which is the version I'm currently using.
在 Quartz 论坛中也发布了同样的问题。检查此处
答案是“否”。
Posted this same question in Quartz forum also. Check here
Answer is 'No'.