Skip to main content

JRuby 1.1 released - ready for production!

Posted by arungupta on April 9, 2008 at 9:00 AM PDT

JRuby 1.1 is href="http://docs.codehaus.org/display/JRUBY/2008/04/05/JRuby+1.1+Released">released
and ready for production use today. You can unleash the potential in 3
simple steps - href="http://dist.codehaus.org/jruby/jruby-bin-1.1.zip">download,
unzip & get
started
. Here is a quote from the announcement:



more and more reports of
applications exceeding Ruby 1.8.6 performance; we are even beating Ruby
1.9 in some microbenchmarks




This is validated by href="http://blog.nicksieger.com/articles/2007/10/25/jruby-on-rails-fast-enough">1
(Oct 2007), href="http://headius.blogspot.com/2007/11/updated-alioth-numbers-for-jruby-11b1.html">2
(Nov 2007), href="http://blogs.sun.com/arungupta/entry/acts_as_conference_2008_day1">3
(Feb 2008), href="http://headius.blogspot.com/2008/02/jruby-rc2-released-whats-next.html">4
(Feb 2008) and many other hidden/unknown reports. You can easily
configure JRuby 1.1 as the platform of your choice in href="http://netbeans.org">NetBeans 6.1 as
described in href="http://blogs.sun.com/arungupta/entry/totd_27_configurable_multiple_ruby">TOTD
#27.



Now, match this blazing performance of JRuby with href="http://rubyforge.org/projects/glassfishgem/">GlassFish
v3 gem (only 2.4 Mb) which provides a href="http://rubyforge.org/projects/glassfishgem/">superior
solution for developing and deploying Rails application. The
main reasons for using GlassFish instead of WEBrick/Mongrel/LightTPD
are:

  • Identical development and deployment environments
  • Handles multiple requests by maintaining JRuby runtimes and
    database connection pools
  • Ability to redploy an application without restarting
    container
  • In-built Clustering, Load Balancing, and High Availability
    support
  • Allows to leverage investment in a Java EE infrastructure
    and cohosting Ruby-on-Rails and Java EE applications

All the above mentioned reasons, and much more, are explained in detail
in href="http://developers.sun.com/appserver/reference/techart/rails_gf/">Rails
powered by the GlassFish Application Server.



The gem installation is extremely simple as shown below:


cellspacing="2">
~/testbed/jruby-1.1
>bin/jruby -S gem
install glassfish


JRuby limited openssl loaded. gem install jruby-openssl for full
support.

http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL

Updating metadata for 93 gems from http://gems.rubyforge.org

.............................................................................................

complete

Successfully installed glassfish-0.1.2-universal-java

1 gem installed



After the gem is installed, get started by developing a simple href="http://blogs.sun.com/arungupta/entry/totd_28_getting_started_with">scaffold
application or href="http://blogs.sun.com/arungupta/entry/mephisto_with_glassfish_v3_gem">Mephisto.




If you are attending JavaOne
2008
, then href="https://www28.cplan.com/cc191/session_details.jsp?isid=296940&ilocation_id=191-1&ilanguage=english">LAB
8400 will show how to develop and deploy Rails applications
using NetBeans
and deploy them on GlassFish.
href="https://www28.cplan.com/cc191/session_details.jsp?isid=296925&ilocation_id=191-1&ilanguage=english">LAB
4520 will teach you more about the modular and pluggable href="http://wiki.glassfish.java.net/Wiki.jsp?page=PlanForGlassFishV3">GlassFish
v3 architecture.



GlassFish
JRuby wiki
or href="http://wiki.jruby.org/wiki/JRuby_on_Rails_in_GlassFish">JRuby
wiki gives you all the latest information about
JRuby-on-Rails and GlassFish.



Technorati: jruby
ruby href="http://tecnorati.com/tag/rubyonrails">rubyonrails
netbeans
glassfish
v3 href="http://tecnorati.com/tag/gem">gem
href="http://tecnorati.com/tag/gem">


Related Topics >>