Hi,
When i try to execute quartzService.executeNow
which i am manully executing. I am getting getting Caused by: org.quartz.JobPersistenceException: The job (DEFAULT.Predue SMS-NPDC D15 D3 with Link) referenced by the trigger does not exist. error.
When debug i found that this quartzService is using Main datasource to fetch database details.
I had created additional database properties and i am trying to set configuration to Quartz service but still i am getting Main datasource as configuration instead additional datasource
@Autowired
private QuartzService quartzService;
**quartzService.executeNow**(schedulerApprovalLog.getName(), schedulerApprovalLog.getChannel());
Is there any way to execute quartz service with additional datasource instead main data source.
Below code i tried but not worked.
spring.quartz.properties.org.quartz.jobStore.dataSource=digitalDataSource
spring.quartz.properties.org.quartz.jobStore.tablePrefix=QRTZ_
spring.quartz.properties.org.quartz.dataSource.digitalDataSource.driver=org.postgresql.Driver
spring.quartz.properties.org.quartz.dataSource.digitalDataSource.URL=jdbc:postgresql://localhost:5432/yourdb
spring.quartz.properties.org.quartz.dataSource.digitalDataSource.user=postgres
spring.quartz.properties.org.quartz.dataSource.digitalDataSource.password=postgres