l***@gmail.com
2007-05-18 21:29:39 UTC
Hi,
Does the Rhino engine have an api that can stop the execution of a
script fie in the middle. For example, I have a script file in which
there is an infinte loop. How can I stop the execution in the middle?
Of course, I can stop the jvm which started the Rhino engine to
excecute the script. But maybe that's not a good idea if I started the
Rhino engine programmatically, in this case, I don't not want to stop
the jvm totally because I don't want my java application itself. How
can I keep my java app still running but just kill the Rhino engine's
execution of the script file?
Thanks
Linda
Does the Rhino engine have an api that can stop the execution of a
script fie in the middle. For example, I have a script file in which
there is an infinte loop. How can I stop the execution in the middle?
Of course, I can stop the jvm which started the Rhino engine to
excecute the script. But maybe that's not a good idea if I started the
Rhino engine programmatically, in this case, I don't not want to stop
the jvm totally because I don't want my java application itself. How
can I keep my java app still running but just kill the Rhino engine's
execution of the script file?
Thanks
Linda