JobOperator jo = BatchRuntime.getJobOperator();
out.println("Got the job operator: " + jo + "<br>");
long jid = jo.start("myJob", new Properties());
out.println("Job submitted: " + jid + "<br>");
out.println(jo.getJobInstanceCount("myJob") + " job instance found<br/>");
JobExecution je = jo.getJobExecution(jid);
// jo.abandon(jid);
out.println("Job created on: " + je.getCreateTime() + "<br>");
out.println("Job started on: " + je.getStartTime() + "<br>");
out.println("Found: " + jo.getJobNames().size() + " jobs<br>");
for (String j : jo.getJobNames()) {
out.println("--> " + j + "<br>");
}
out.println("<br><br>Check server.log for output, also look at \"myJob.xml\" for Job XML.");