I have incorporated Spring Batch Admin into our web app, and now want to use the JSON Restful interface to launch a Job
All seems to be working well, except I was expecting the HTTP Post that launches a Job to return immediately with a JSON response giving the resource that could be polled to see when the job has finished. However what seems to be happening is the POST is not returning until the Job has completed, so I see
Isn't this supposed to work asynchronously ? as my job may take many minutes to complete, and won't the HTTP connection timeout ?Code:{"jobExecution" : { "resource" : "http://localhost:8080/MyApp/batch/jobs/executions/0.json", "id" : "0", "name" : "myJob", "status" : "COMPLETED", "startTime" : "14:37:58", "duration" : "00:00:27", "exitCode" : "COMPLETED", "exitDescription" : "", "jobInstance" : { "resource" : "http://localhost:8080/MyApp/batch/jobs/myJob/0.json" }, "stepExecutions" : { "step1" : { "resource" : "http://localhost:8080/MyApp/batch/jobs/executions/0/steps/0.json", "status" : "COMPLETED", "exitCode" : "COMPLETED" } } }


Reply With Quote