JRuby on Rails: Hackday Report

As reported earlier, Sun Microsystems and Joyent co-sponsored a free JRuby on Rails: Power plus simplicity Hackday. This event happened yesterday at Axis Cafe, San Francisco and the room was completely sold out. I reached the venue around 2:30pm and was pleasantly surprised to see an almost full room.

Stephen (from Sun) kick started the event by introducing the speakers. The event started with a general panel discussion where Jason (from Joyent) gave an overview of JRuby and GlassFish. He mentioned that Ruby language is adopted more widely because of the associated framework. A show of hands in the completely full room room indicated that. The Ruby language is indeed dominated by one framework - Rails.

Nick (from Sun) started his session by saying that JRuby is a tale of two cities - Java and Ruby. The JRuby out-of-the-box experience is pretty close to CRuby. JRuby not only opens the gate to the vast amount of Java libraries available, it also allows to use a database that permits only JDBC connectivity.

Mark (from Joyent) explained Joyent cluster environment and how Rails applications can be deployed there.

The rest of the day was following the demo script to setup environment on your laptop, deploying and running a flavor of applications.

Nick also maintains the activerecord-jdbc gem. Currently a JRuby app talking to the database requires database.yml file to be modified as explained here. Nick mentioned that the next version of this gem will not require to change the database.yml, very cool!

After the dinner, the last working session was deploying a JRuby app in GlassFish. Nick showed how a Hello World WAR can be deployed on GlassFish using goldspike plugin. The second part of the application showed how this application can utilize the database connection pool and connect to the database. A detailed screencast of how such an application can be developed using NetBeans Ruby IDE is available here.

Towards the end of this session, there was an interesting discussion around the pros and cons of using GlassFish as opposed to the traditional Rails deployment model. I plan to capture that discussion with some additional details separately.

The event started at around 2:45pm and there were lot of dedicated "hackers" sitting until late in the day. And the following photographs are taken after the free dinner was served :)

Technorati: jruby rubyonrails glassfish hackday conf netbeans

Comments:

[Trackback] In the JRuby Hackday, Nick Sieger described the process models of a Rails application deployed using Traditional C-based Ruby on Mongrel, JRuby on Mongrel, and JRuby on GlassFish. In this blog entry I'm capturing a brain dump from him...

Posted by Arun Gupta's Blog on August 20, 2007 at 02:32 AM PDT #

[Trackback] ActiveRecord-JDBC 0.5 is now available. As mentioned earlier, one of the main features in this release is simplified database configuration for JRuby-on-Rails applications. From the release notes: It is no longer necessary to specify :driver and :url c...

Posted by Arun Gupta's Blog on August 27, 2007 at 03:35 AM PDT #

[Trackback] Using the instructions followed in JRuby Hack Day and taking some help from Nick, I figured out how to use the JDBC connection pools configured in GlassFish using the JNDI names. All the commands given below are relevant for GlassFish...

Posted by Arun Gupta's Blog on September 11, 2007 at 11:51 PM PDT #

Post a Comment:
Comments are closed for this entry.
About

profile image
Arun Gupta is a technology enthusiast, a passionate runner, author, and a community guy who works for Oracle Corp.


Java EE 7 Samples

Stay Connected

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today