Ruby on Java Luc Castera
JRuby JSR-223: Scripting for Java Bean Scripting Framework work home Java + Ruby Motivation Solutions
Option 1Option 2Option 3
JRuby JRuby is an 100% pure-Java implementation of Ruby Import Mature Java Libraries into Ruby Facilitate Ruby Deployment in Enterprise Threads + Internalization friendly JRuby 1.0 'almost' Ruby 1.8.x compatible JRuby on Rails: active-record-jdbc, goldspike, glassfish-rails) JRuby compiler to Java bytecode -> Performance!
JRuby Example
JSR-223 The JSR-223 defines scripting in the Java platform. Sun's implementation of Java SE 6 includes Rhino engine for Javascript. Other Script Engines exists for other languages such as Ruby, Python, Tcl, PHP... You may include scripting support in your Java application for various reasons: - Sophisticated configuration options - User-defined functionality - Ease of maintenance - Skill set of users - Reuse of code modules in other languages
JSR-223 Example 1
Example 2 Jill Bob Jill Bob Dana
BSF Similar to JSR-223 Created by IBM, then donated to Apache S.F.
Resources /2007/TD_GEN_JavaSE_Scripting.pdf sktop/scripting/