Java Web Start 10.9.2.05
Using JRE version 1.7.0_09-b05 Java HotSpot(TM) 64-Bit Server VM
Hi all,
My batch processor seem to detach themselves, so I can no longer stop them from the 'Batch Processor' page. 'Batch Processor' page claims the batch process is not running, although I can see them on the 'Client' page. Sometimes, the batch processor keeps running fine doing its tasks, other times it dies (Client idle since: freezes).
- Code: Select all
function background_processing(event) {
if (application.getApplicationType() == APPLICATION_TYPES.HEADLESS_CLIENT) {
while(true) {
var d = new Date();
// code to do stuff here
//
//only run once a minute so we sleep a bit if takes less than a minute
var elapsed = (new Date()) - d;
if(elapsed < 60000) application.sleep(60000 - elapsed);
}
}
}
can sleep be causing this?
C