0
我使用石英JDBCJobStore
,并有下列作业定义JDBCJobStore迷茫中石英Schdular
JobDetail job=newJob(HelloJob.class).withIdentity("demo11", "group11").
usingJobData("jobSays", "Hello Vikas")
.usingJobData("myFloatValue", 3.141f).storeDurably(true).
build();
,并触发作为
Trigger trigger=newTrigger().withIdentity("Trigger11","group11")
.startNow().withSchedule(CronScheduleBuilder.
cronSchedule("0 0/1 * * * ?")).build();
我印象中,石英将存储在数据库中jobSays
和myFloatValue
,但我无法在数据库中看到任何此类属性。
有没有办法将这些JobData
存储在数据库中?
这里是quartz.property
文件
org.quartz.scheduler.instanceName = MyScheduler
org.quartz.threadPool.class=org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 3
org.quartz.jobStore.dataSource = myDS
org.quartz.dataSource.myDS.driver=com.mysql.jdbc.Driver
org.quartz.dataSource.myDS.URL=jdbc:mysql://localhost:3306/quartz
org.quartz.dataSource.myDS.user=root
org.quartz.dataSource.myDS.password=root
org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.MSSQLDelegate
org.quartz.jobStore.tablePrefix = QRTZ_