JRuby & Rails
Jumping tracks with minimal pain
Contents
• JRuby & Rails
 •   Why?

 •   Things to Watch

 •   Databases

 •   Servers & Deployment

• Beyond Rails with J...
Why Rails on JRuby?
Why?


• Easier deployments
• Potential scalability
Warning Signs?
Danger!

• Relying upon Native Code
 • Gems
 • Standard Library
Databases

• Pure Ruby Drivers
 • Slow(er)
 • Most Compatible
ActiveRecord-JDBC

• JDBC: Java’s Native Database Protocol
• More Databases Supported
• Faster
• Odd compatibility issues?
Database Config Demo
Deployment


• Deploying to Mongrels/etc. = JRuby 1.0
• Deploying to Java = Preferred JRuby 1.1+
Serving from Java


• Packaging your application
• Getting it to the server
Packaging with Warbler


• Packaging your Rails app for Java Servers
• Resultant artefact is a deployable
  Application
Warbler Config Demo
Java on Development

• script/server still works
• jetty_rails
• glassfish_rails
Moving to Production


• Java 5 (or higher) is the key!
Beyond Rails?


• Calling Rails from a Java webapp?
• Use Merb? Camping?
Beyond Rails?


• Rack support!
Links

• JRuby
 • http://www.jruby.org
 • http://wiki.jruby.org
• JRuby Inside: http://www.jrubyinside.com
• Nick Sieger: ...
Upcoming SlideShare
Loading in...5
×

Rails on JRuby

1,151

Published on

A presentation I delivered to the Melbourne Ruby User's Group on some of the things Rails developers need to be aware of when getting a Rails application running on top of JRuby.

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,151
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
25
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Rails on JRuby

  1. 1. JRuby & Rails Jumping tracks with minimal pain
  2. 2. Contents • JRuby & Rails • Why? • Things to Watch • Databases • Servers & Deployment • Beyond Rails with JRuby
  3. 3. Why Rails on JRuby?
  4. 4. Why? • Easier deployments • Potential scalability
  5. 5. Warning Signs?
  6. 6. Danger! • Relying upon Native Code • Gems • Standard Library
  7. 7. Databases • Pure Ruby Drivers • Slow(er) • Most Compatible
  8. 8. ActiveRecord-JDBC • JDBC: Java’s Native Database Protocol • More Databases Supported • Faster • Odd compatibility issues?
  9. 9. Database Config Demo
  10. 10. Deployment • Deploying to Mongrels/etc. = JRuby 1.0 • Deploying to Java = Preferred JRuby 1.1+
  11. 11. Serving from Java • Packaging your application • Getting it to the server
  12. 12. Packaging with Warbler • Packaging your Rails app for Java Servers • Resultant artefact is a deployable Application
  13. 13. Warbler Config Demo
  14. 14. Java on Development • script/server still works • jetty_rails • glassfish_rails
  15. 15. Moving to Production • Java 5 (or higher) is the key!
  16. 16. Beyond Rails? • Calling Rails from a Java webapp? • Use Merb? Camping?
  17. 17. Beyond Rails? • Rack support!
  18. 18. Links • JRuby • http://www.jruby.org • http://wiki.jruby.org • JRuby Inside: http://www.jrubyinside.com • Nick Sieger: http://blog.nicksieger.com/
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×