I am using the Rhino script engine in JDK 6.  Is there a way to pause
and resume a script.

For example:

ScriptEngineManager engineMgr = new ScriptEngineManager();
ScriptEngine engine = engineMgr.getEngineByName("JavaScript");
engine.eval("println('1');println('2');println('3');println('4');");

I would like have the script to execute "println('1')" then pause
while I do some other processing.  Then I would like to call the
engine again and have it resume processing where it left off.

Is there way to do this?
_______________________________________________
dev-tech-js-engine-rhino mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to