gpt4 book ai didi

quartz-scheduler - quartz : There is no DataSource named 'myDS'

转载 作者:行者123 更新时间:2023-12-04 08:35:53 26 4
gpt4 key购买 nike

当我使用数据源名称作为“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

最佳答案

已解决,更改自

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


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

关于quartz-scheduler - quartz : There is no DataSource named 'myDS' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46327762/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com