Rails on JRuby

  • 1,107 views
Uploaded 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.

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.

More in: Technology
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,107
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
24
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

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