Nashorn ... In Enterprise Applications
summary
Shows concrete use of Nashorn on Java 8 to script and embed logic: implements Runnable and Predicate interfaces from JavaScript, passes Java objects back and forth, and runs scripts from a cache (Hazelcast JCache) so code moves as strings across nodes. Demonstrates automation with Docker/Vagrant, a static site generator that renders HDM+JSON via mustache templates, and JSON→Java conversions; reports production use and fast invocation (around 50 calls/sec) and confirms the approach works for validation, monitoring and distributed agents.
AI-written summary · about
chapters (11)
- 0:00Introduction and background
- 3:43Nashorn scripting basics
- 7:46Automation with Docker
- 13:56JavaScript to Java communication
- 25:43Java to JavaScript interaction
- 38:03Enterprise use cases
- 42:40Agents and distributed scripts
- 46:13Dynamic validation with Nashorn
- 51:42Templating and static generation
- 57:47Nashorn in enterprise projects
- 59:52Q&A and closing
related talks
50mNashorn - what's all the fuss about
45mNashorn: implementing a dynamic language runtime on JVM in 2014
41mNashorn Under the Hood: Making This Rhinoceros Thunder
57mNashorn War Stories: Dynamic Language Performance on the JVM
57mNashorn for Java 9
01h 30mServer-side JavaScript with Nashorn and Spring
43mIsomorphic JavaScript apps
25mServer-side JavaScript the untold story
