Quartz Spring Test Junit

Asked

Viewed 39 times

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?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.