1
How to recur a Job that is operating in Cluster in Spring?
- Spring 4.3
- Quartz 2.2.3
Example of Job’s declaration
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class SysEncryptEmailSendSystemJob implements Job{
..
@Override
public void execute(final JobExecutionContext context) throws
JobExecutionException {
}
}
My Factory
@Autowired
@Qualifier(value = SysConfig.SCHEDULER_FACTORY)
private SchedulerFactoryBean schedulerFactory;
I know I could write it down as @Component but as it loses the functionality of Quartz, the goal of doing the IOC is to do the tests with Junit!
Any way to do it? Someone’s done it before?