具有多租户 - 单租户模式的 Quartz 插件
我在我的项目中同时使用 multi-tenant-core1.0.3(单租户模式)和quartz 0.4.2 插件。我已经在 resources.groovy 中创建了调度程序(SchedulerFactoryBean)bean。
beans = {
quartzScheduler(SchedulerFactoryBean) {
autoStartup = false
dataSource = ref('dataSource')
transactionManager = ref('transactionManager')
configLocation = 'classpath:quartz.properties'
jobFactory = ref('quartzJobFactory')
jobListeners = [ref("${SessionBinderJobListener.NAME}")]
globalJobListeners = [ref("${ExceptionPrinterJobListener.NAME}")]
}
}
当我从默认租户创建作业时,该作业将在计划时间创建并执行。当我从其他租户创建作业时,它会在相应租户的数据库表 qrtz_triggers、qrtz_simple_triggers 和 qrtz_job_details 中插入记录。但该工作并未执行。我认为作业执行者仍在研究主数据库。
任何人都可以告诉我,应该配置什么或解决此问题的任何解决方法?
I am using both multi-tenant-core1.0.3(Single tenant mode) and quartz 0.4.2 plugins in my project. I have created the scheduler(SchedulerFactoryBean) bean in the resources.groovy.
beans = {
quartzScheduler(SchedulerFactoryBean) {
autoStartup = false
dataSource = ref('dataSource')
transactionManager = ref('transactionManager')
configLocation = 'classpath:quartz.properties'
jobFactory = ref('quartzJobFactory')
jobListeners = [ref("${SessionBinderJobListener.NAME}")]
globalJobListeners = [ref("${ExceptionPrinterJobListener.NAME}")]
}
}
When I create a job from my default tenant, the job is created and executed on the scheduled time. When I create the job from other tenants, it inserts records in the respective tenant's db tables qrtz_triggers, qrtz_simple_triggers and qrtz_job_details. But the job is not executing. I think the job executor is still looking into the main db.
Can any one tell me, what should be configured or any work around to resolve this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论