Miles to go ...

Arun Gupta is a Technology Evangelist for Web Services and Web 2.0 Apps at Sun. He was the spec lead for APIs in the Java platform, committer in multiple Open Source projects, participated in standard bodies and contributed to Java EE and SE releases.
« Screencast #Web6:... | Main | Understanding Securi... »

http://blogs.sun.com/arungupta/date/20070809 Thursday August 09, 2007

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

del.icio.us | furl | simpy | slashdot | technorati | digg
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 09: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 10: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 12, 2007 at 06:51 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
« Screencast #Web6:... | Main | Understanding Securi... »

Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.

--> ajax ajaxworld conf eclipse fitness gem glassfish glassfishday hyderabad india indigo interoperability javaone javaone2008 jax-ws jmaki jpa jruby mac marathon metro microsoft mysql netbeans phobos photography presos railsconf ruby rubyonrails running runninglog runsfm screencast siliconvalleymarathon sun suntechdays swdp tango theserverside totd training traveltips v3 vista wcf web2.0 webservices webtier windows wsaddressing wsit youtube
Locations of visitors to this page

calendar

« September 2008
SunMonTueWedThuFriSat
 
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
www.flickr.com
This is a Flickr badge showing public photos from ArunGupta. Make your own badge here.
Add to Technorati Favorites

Last 50