Where can I find a list of available JSR-223 scripting languages? [closed]

This is not a official list, but you can start here: http://en.wikipedia.org/wiki/List_of_JVM_languages Rhino (JavaScript) is implemented in the Oracle JDK/JRE by default. With this code you can see what scripting languages are available in your JDK: import java.util.*; import javax.script.*; public class A { public static void main( String[] args ) { ScriptEngineManager mgr = … Read more

Should I use a separate ScriptEngine and CompiledScript instances per each thread?

You can share a ScriptEngine and CompiledScript objects across threads. They are threadsafe. Actually, you should share them, as a single engine instance is a holder for a class cache and for JavaScript objects’ hidden classes, so by having only one you cut down on repeated compilation. What you can’t share is Bindings objects. The … Read more