Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cloning a scope - get a perfect copy of an exécution state

1 view
Skip to first unread message

Quentin ADAM (waxzce) - Kan OP

unread,
Dec 30, 2009, 12:28:45 PM12/30/09
to
Hi,

I'm working on a js server with rhino and glassfishv3.

For improve performance, I would like execute and load all my script
into the server deployment and just launch few functions and events in
the user request time. So the challenge is, i want init my
Scriptable :
Global global = new Global();
Context cx = ContextFactory.getGlobal().enterContext();
global.init(cx);
Scriptable myscriptable = cx.initStandardObjects(global);
Have some work :
myscriptable.evaluateString([...]);

and
Scriptable myClone = myscriptable.clone();
myClone.evaluateString([...]);
but myScriptable never change.

Is it possible ?

0 new messages