On 18 Feb 2021, at 5:50, Woonsan Ko wrote:

[...]
I found one example:

https://stackoverflow.com/questions/27710407/reuse-nashorn-scriptengine-in-servlet

As a servlet implementation may embed a Jython engine to execute a
python script, it will end up embedding a JS engine in a servlet to
execute a .js like the example.

Thanks! I certainly will look at this!

I guess JS engine in Java vs. Node.js depends on whether or not you
need to allow the .js scripts to use any existing Java libraries in
the same JVM.

Well, the JavaScript code has to be able to use java.sql... to access a Oracle database. I would think this is possible with Nashorn.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to