Source:
public void init() { if (serverConfigurationService.getBoolean("ses.autosetup", false)) { log.info ("SES AutoImport running"); Scheduler scheduler = schedulerManager.getScheduler(); String[] startups = serverConfigurationService.getStrings("ses.startup"); for (String startup : startups) { try { String jobBean = serverConfigurationService.getString("ses.import."+startup+".jobbean"); SpringJobBeanWrapper job = (SpringJobBeanWrapper)applicationContext.getBean(jobBean); JobDataMap jobData = new JobDataMap(); jobData.put(JobBeanWrapper.SPRING_BEAN_NAME, job.getBeanId()); jobData.put(JobBeanWrapper.JOB_TYPE, job.getJobType()); JobDataMap triggerData = new JobDataMap(); String param; param = serverConfigurationService.getString("ses.import."+startup+".uri"); if (null != param) { triggerData.put("xcri.oxcap.populator.uri", param); } param = serverConfigurationService.getString("ses.import."+startup+".user"); if (null != param) { triggerData.put("xcri.oxcap.populator.username", param); } param = serverConfigurationService.getString("ses.import."+startup+".password"); if (null != param) { triggerData.put("xcri.oxcap.populator.password", param); } param = serverConfigurationService.getString("ses.import."+startup+".name"); if (null != param) { triggerData.put("xcri.oxcap.populator.name", param); } JobDetail jobDetail = new JobDetail(job.getJobType(), null, job.getJobClass()); jobDetail.setJobDataMap(jobData); scheduler.addJob(jobDetail, true); scheduler.triggerJobWithVolatileTrigger(job.getJobType(), null, triggerData); log.info("Triggered job: "+ job.getJobType()); } catch (SchedulerException se) { log.warn("Failed to run job: "+ startup, se); } } } }

Target:
public void init() { if (serverConfigurationService.getBoolean("ses.autoimport", false)) { log.info ("SES AutoImport running"); Scheduler scheduler = schedulerManager.getScheduler(); String[] startups = serverConfigurationService.getStrings("ses.startup"); for (String startup : startups) { try { String jobBean = serverConfigurationService.getString("ses.import."+startup+".jobbean"); SpringJobBeanWrapper job = (SpringJobBeanWrapper)applicationContext.getBean(jobBean); JobDataMap jobData = new JobDataMap(); jobData.put(JobBeanWrapper.SPRING_BEAN_NAME, job.getBeanId()); jobData.put(JobBeanWrapper.JOB_TYPE, job.getJobType()); JobDataMap triggerData = new JobDataMap(); String param; param = serverConfigurationService.getString("ses.import."+startup+".uri"); if (null != param) { triggerData.put("xcri.oxcap.populator.uri", param); } param = serverConfigurationService.getString("ses.import."+startup+".user"); if (null != param) { triggerData.put("xcri.oxcap.populator.username", param); } param = serverConfigurationService.getString("ses.import."+startup+".password"); if (null != param) { triggerData.put("xcri.oxcap.populator.password", param); } param = serverConfigurationService.getString("ses.import."+startup+".name"); if (null != param) { triggerData.put("xcri.oxcap.populator.name", param); } JobDetail jobDetail = new JobDetail(job.getJobType(), null, job.getJobClass()); jobDetail.setJobDataMap(jobData); scheduler.addJob(jobDetail, true); scheduler.triggerJobWithVolatileTrigger(job.getJobType(), null, triggerData); log.info("Triggered job: "+ job.getJobType()); } catch (SchedulerException se) { log.warn("Failed to run job: "+ startup, se); } } } }