Invoke dynamic languages dynamically, Part 2, Find, execute, and change scripts at run time

Alter business logic on the fly

From the developerWorks archives

Tom McQueeney

Date archived: May 13, 2019 | First published: September 11, 2007

The Java™ scripting API added in Java SE 6 and backward compatibility with Java SE 5 allows dozens of scripting languages to be called at run time from a Java application in a simple, unified way. Part 1 of this two-part article introduces the API's basic features. Part 2 exposes more of its power, demonstrating how external scripts written in Ruby, Groovy, and JavaScript can be executed and altered at run time to change business logic without stopping and restarting the application.

This content is no longer being updated or maintained. The full article is provided "as is" in a PDF file. Given the rapid evolution of technology, some content, steps, or illustrations may have changed.

Zone=Java development
ArticleTitle=Invoke dynamic languages dynamically, Part 2: Find, execute, and change scripts at run time