use of javax.batch.operations.JobOperator in project quickstart by wildfly.
the class BatchController method startImport.
public void startImport() {
JobOperator jobOperator = BatchRuntime.getJobOperator();
Properties jobParameters = new Properties();
jobParameters.setProperty("fileName", getFileName());
long execID = jobOperator.start("import-file", jobParameters);
facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, "New job execution #" + execID + " running. Importing file:" + getFileName(), null));
}
Aggregations