Skip to content
cavpollo edited this page Dec 4, 2015 · 2 revisions

Home

JRuby on Rails

You can use JRuby with [http://www.rubyonrails.org/ Ruby on Rails]. JRuby gives Rails the power and functionality of the Java Platform, providing it with: * Excellent garbage collection for endless uptimes * Hotspot profiled dynamic optimizations for great performance * Access to the Java ecosphere for additional technology options * Deployment to Java application servers for ubiquity

TOC ===Getting Started=== Get started with these tutorials:

  • [http://deployingjruby.blogspot.com/2014/12/using-puma-with-rails-4-on-heroku.html Using Puma, Rails 4 and JRuby on Heroku] - Simple well explained tutorial (Up to date-ish. Written on December 4, 2014).
  • Outdated(404): [http://blog.rubyrockers.com/2011/03/rails3-application-jruby Rails3 application with Jruby]
  • Outdated(JRuby Version 1.3.1): [http://thenice.tumblr.com/post/133345213/deploying-a-rails-application-in-tomcat-with-jruby-a Deploying a Rails application in Tomcat with JRuby: A concise tutorial]
  • Empty Wiki: JRuby on Rails with Spring - zero to .war file with Spring and Maven.
  • Outdated (Page says 'This book is obsolete') "Porting" the Depot Application To Jruby, [http://tompurl.com/2010/03/02/running-the-depot-application-with-jruby/ Parts 1] and [http://tompurl.com/2010/03/25/running-depot-on-tomcat/ 2]: These tutorials show you how to make the Depot application from "[http://www.pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition Agile Web Development with Rails, Third Edition]" work with Jruby.

=== Deployment ===

==== War File Deployment ==== If you don't use a traditional Ruby application server like [http://mongrel.rubyforge.org/ Mongrel], you can use a Java application server. To deploy to a Java app server, you can use the tool Warbler to bundle your Rails application in a Java Web Application Archive (.war file). (Warbler is a minimal, flexible, Ruby-like way to create a .war file.) Once you have a .war file, you can deploy to any Java app server using its war deployment mechanism.

'''Some links to information on various Java appllication servers:'''

==== Glassfish v3 Deployment ==== The Glassfish gem by Vivek Pandey enables you to easily deploy a JRuby on Rails application to the Glassfish v3 modularized Java application server. The Glassfish gem wraps the essential technologies in 3 MB and allows you to run your application using a traditional approach, as if you were running Mongrel, Rack, and so on. A brief tutorial can be found here:
JRuby on Rails with Glassfish Gem.

See also:

==== Traditional Rails Deployment ====

  • [http://glassfishgem.rubyforge.org/ Glassfish Gem on Rubyforge]
  • [http://weblogs.java.net/blog/vivekp/archive/2009/03/new_features_in.html New features in GlassFish 0.9.3 gem]
  • [http://mongrel.rubyforge.org/ Mongrel web site]
  • [http://en.wikipedia.org/wiki/Mongrel_(web_server) Mongrel Web Server entry on Wikipedia]
  • [http://swiftiply.swiftcore.org/mongrel.html Swiftiply with Mongrel]
  • [http://www.webrick.org/ WEBrick website]
  • [http://en.wikipedia.org/wiki/WEBrick WEBrick entry on Wikipedia]
  • [http://microjet.ath.cx/WebWiki/WEBrick.html Gnome's Guide to WEBrick]
  • [http://modrails.com Passenger]
  • [http://torquebox.org TorqueBox] (based on JBoss)
  • [https://github.com/trinidad/trinidad Trinidad] (based on Tomcat)

=== Miscellaneous Rails Topics ===

Clone this wiki locally