Examples of JobInstanceAlreadyExistsException


Examples of org.springframework.batch.core.launch.JobInstanceAlreadyExistsException

    JobParameters jobParameters = jobParametersConverter.getJobParameters(PropertiesConverter
        .stringToProperties(parameters));

    if (jobRepository.isJobInstanceExists(jobName, jobParameters)) {
      throw new JobInstanceAlreadyExistsException(String.format(
          "Cannot start a job instance that already exists with name=%s and parameters=%s", jobName,
          parameters));
    }

    Job job = jobRegistry.getJob(jobName);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.