How to stop java scripting engine when the script being run is taking too much time?

How to stop java scripting engine when the script being run is taking too much time? for e,g, in case of infinite loop the memory is getting exceeds to throw out of memory error. I searched lot in google but didn't find a solution suited.

View Answers









Related Tutorials/Questions & Answers:
Advertisements