Quartz:没有名为'myDS'的DataSource

时间:2017-09-20 16:54:22

标签: quartz-scheduler

当我使用数据源名称为“quartzDS”时,一切正常,但是当我将数据源名称更改为任何其他名称时,如“myDS”。我收到错误。

Caused by: java.sql.SQLException: There is no DataSource named 'myDS'

我的quartz.properties文件。

org.quartz.scheduler.instanceName = QuartzClusterScheduler
org.quartz.scheduler.instanceId = AUTO
org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 100
org.quartz.threadPool.threadPriority = 8
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.jobStore.useProperties = false
org.quartz.jobStore.dataSource = myDS
org.quartz.jobStore.misfireThreshold = 60000
org.quartz.jobStore.tablePrefix = QRTZ_
org.quartz.jobStore.isClustered = true
org.quartz.jobStore.clusterCheckinInterval = 5000
org.quartz.dataSource.quartzDS.jndiURL = java:jboss/myDS

1 个答案:

答案 0 :(得分:1)

已解决,已从

更改
org.quartz.dataSource.quartzDS.jndiURL = java:jboss/myDS

org.quartz.dataSource.myDS.jndiURL = java:jboss/myDS