Re: Reusing ScriptContext and Global Variables

2015-04-07 Thread Hannes Wallnoefer
Hi Tony, Yes, I think your setup should work. ScriptEngine.ENGINE_SCOPE is equivalent to the JavaScript global object, while GLOBAL_SCOPE can be used to provide default values that are shared between JS globals. Hannes Am 2015-04-06 um 15:56 schrieb Tony Zakula: Hello, We are running scri

Reusing ScriptContext and Global Variables

2015-04-06 Thread Tony Zakula
Hello, We are running scripts server side and using the multi-threaded example running the same ScriptEngine across multiple threads as per the recent blog posts and examples here: https://blogs.oracle.com/nashorn/entry/improving_nashorn_startup_time_using If I understand the notes below correct