Download presentation
Presentation is loading. Please wait.
1
Ruby on Java Luc Castera http://dambalah.com luc.castera@gmail.com
2
JRuby JSR-223: Scripting for Java Bean Scripting Framework Java @ work Ruby @ home Java + Ruby Motivation Solutions
3
Option 1Option 2Option 3
4
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!
5
JRuby Example
6
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
7
JSR-223 Example 1
8
Example 2 Jill Bob Jill Bob Dana
9
BSF Similar to JSR-223 Created by IBM, then donated to Apache S.F. http://jakarta.apache.org/bsf/
10
Resources http://jruby.codehaus.org/ http://dist.codehaus.org/jruby/talks/ http://developers.sun.com/events/techdays/presentations /2007/TD_GEN_JavaSE_Scripting.pdf http://headius.blogspot.com/ https://scripting.dev.java.net/ http://java.sun.com/developer/technicalArticles/J2SE/De sktop/scripting/ http://www.jrubyinside.com/ http://jcp.org/en/jsr/detail?id=223
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.