UPDATE: Simplified steps for GlassFish V2 are available here and for V3 here.
Earlier in a three-part series (part1, part2, part3) I showed how a JRuby application can be deployed on GlassFish. This screencast consolidates all the entries together and shows how such an application can be developed and deployed using NetBeans Ruby IDE. |
Enjoy it here!
The screencast is divided in four segments:
- Create a "Hello World" Rails app
- Deploy this app as WAR in GlassFish
- In Rails app, read the greeting from MySQL database
- Deploy this app as WAR in GlassFish
Here are some more useful links
- Rails Integration Plugin (or goldspike)
- Running Rails with ActiveRecord-JDBC
The NetBeans IDE provides a comprehensive support for Ruby code completion, refactoring, debugging, Rails support, support for RHTML files, code templates, unit test execution, shortcuts, and much more. Please post your questions about Ruby support in NetBeans IDE to .
Technorati: jruby ruby rubyonrails glassfish netbeans screencast
Related posts:- Screencast #Web8: jMaki on Rails for Dummies – 2nd edition
- Screencast #Web 9: JRuby-on-Rails standalone and shared WARs in GlassFish
- Screencast #26: Develop/Run/Debug Rails application using NetBeans IDE and GlassFish v3 Prelude
- Ask The “JRuby + NetBeans + GlassFish” Experts
- JRuby on GlassFish v2 – screencast from community
[Trackback] 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…
Comment by Arun Gupta's Blog — August 9, 2007 @ 11:20 am
[Trackback] 教你如何把 JRoR 的 app 丢到 Java Appliaction Server 上面。
之前我自己有實驗過 deply JRoR app 到 tomcat 上面去,今天看到這篇文章在介紹如何把用 JRoR 寫好的 app 部署到 Java AS 上面,生動的影片教學應…
Comment by ericsk's blog — August 10, 2007 @ 7:41 am
[Trackback] In a previous screencast, I showed how a Rails application can be deployed as WAR file on GlassFish V2. In GlassFish V3, the Grizzly connector by-passes the need to bundle a Rails application as WAR. Instead it directly invokes JRuby…
Comment by Arun Gupta's Blog — August 13, 2007 @ 9:29 am
Just a simple question ,
WHY?
I am very sory , but I dont get it.
I have everything the easy way from pure ROR, and you come to sugest me to make them complecated. why? what is the reason of this? please give a logic explanation. As I see it someone is trying to steal something for "free".
PS: The "not_so_captcha" bellow has no security.
Comment by kritias — August 14, 2007 @ 5:41 pm
Kritias, There are several advantages of using JRuby and GlassFish. First of all, you can deploy your Rails applications on GlassFish which provides high-availability and clustering support. Redploying an application does not require a restart of the server. Using GlassFish also gives you access to several databases that can be accessed only via JDBC. Last but not the least, you’ve access to a vast amount of Java libraries that can be invoked from Rails application. I’m working on a more complete entry and will post it in the near future.
Comment by Arun Gupta — August 14, 2007 @ 5:52 pm
Arun, it would be good if you could show us how to configure JRuby and Rails to use the JavaDB (Derby) database installed with GlassFish so we don’t need to use MySQL. Thanks!
Comment by Glen — August 16, 2007 @ 12:58 pm
[Trackback] In a previous screencast, I showed how to develop a Rails application fetching data from the MySQL database and deploy it in GlassFish. GlassFish comes pre-bundled with JavaDB. Based upon a user request, this TOTD shows to use JavaDB database…
Comment by Arun Gupta's Blog — August 20, 2007 @ 5:56 am
Glen, A new tip showing how to configure JRuby and Rails to use JavaDB installed with GlassFish is available at: http://blogs.sun.com/arungupta/entry/totd_3_using_javadb_with
Comment by Arun Gupta — August 20, 2007 @ 5:58 am
[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…
Comment by Arun Gupta's Blog — August 20, 2007 @ 9:32 am
[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…
Comment by Arun Gupta's Blog — August 27, 2007 @ 10:35 am
[Trackback] The NetBeans IDE has simplified the steps to deploy JRuby on Rails application on GlassFish. This blog explains the steps and is an update to screencast #web6. Download the install the latest NetBeans 6 Nightly. I downloaded the Ruby pack…
Comment by Arun Gupta's Blog — September 7, 2007 @ 5:36 am
Arun, it would be good if you could show us how to configure JRuby and Rails to use the JavaDB (Derby) database installed with GlassFish so we don’t need to use MySQL. Thanks!
Comment by laptop batteries — November 26, 2008 @ 8:49 pm
JRuby and JavaDB configuration is explained at: http://blogs.sun.com/arungupta/entry/totd_3_using_javadb_with
Comment by Arun Gupta — November 27, 2008 @ 8:45 am
In a previous screencast, I showed how to develop a Rails application fetching data from the MySQL database and deploy it in GlassFish. GlassFish comes pre-bundled with JavaDB. Based upon a user request, this TOTD shows to use JavaDB database…
Comment by Warhammer Online Gold — March 11, 2009 @ 10:39 pm