use of javax.batch.operations.JobStartException in project javaee7-firstcup by ecabrerar.
the class SalesBean method runJob.
public void runJob() {
try {
JobOperator jo = BatchRuntime.getJobOperator();
long jobId = jo.start("eod-sales", new Properties());
System.out.println("Started job: with id: " + jobId);
} catch (JobStartException ex) {
ex.printStackTrace();
}
}
Aggregations