I'm trying to start batch jobs according to JSR 352 specifications using JobOperator
obtained from BatchRuntime in an onMessage(...)
method in a JMS MessageListener.
JobOperator jobOperator = BatchRuntime.getJobOperator();
Properties props = new Properties();
props.setProperty("sourceFile", "data_file.csv");
jobOperator.start("batchTask", props);
The result is that the job execution is stuck at STARTING. When I try to stop the task from the same thread, it is similarly stuck at STOPPING.
Starting the same job from a plain HttpServlet
it runs to completion immediately. Why is this so?