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: December 19, 2016 | 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 steps and illustrations may have changed.



static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Java development
ArticleID=253876
ArticleTitle=Invoke dynamic languages dynamically, Part 2: Find, execute, and change scripts at run time
publish-date=09112007