Screencast #Web6: First JRuby app in GlassFish

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

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 users@ruby.netbeans.org.

Technorati: jruby ruby rubyonrails glassfish netbeans screencast

Comments:

[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...

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

[Trackback] 教你如何把 JRoR 的 app 丢到 Java Appliaction Server 上面。 之前我自己有實驗過 deply JRoR app 到 tomcat 上面去,今天看到這篇文章在介紹如何把用 JRoR 寫好的 app 部署到 Java AS 上面,生動的影片教學應...

Posted by ericsk's blog on August 10, 2007 at 12:41 AM PDT #

[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...

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

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.

Posted by kritias on August 14, 2007 at 10:41 AM PDT #

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.

Posted by Arun Gupta on August 14, 2007 at 10:52 AM PDT #

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!

Posted by Glen on August 16, 2007 at 05:58 AM PDT #

[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...

Posted by Arun Gupta's Blog on August 19, 2007 at 10:56 PM PDT #

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

Posted by Arun Gupta on August 19, 2007 at 10:58 PM PDT #

[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] 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...

Posted by Arun Gupta's Blog on September 06, 2007 at 10:36 PM PDT #

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!

Posted by laptop batteries on November 26, 2008 at 12:49 PM PST #

JRuby and JavaDB configuration is explained at: http://blogs.sun.com/arungupta/entry/totd_3_using_javadb_with

Posted by Arun Gupta on November 27, 2008 at 12:45 AM PST #

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...

Posted by Warhammer Online Gold on March 11, 2009 at 03:39 PM PDT #

I´m a newcomer in this segment but this screencast is easy to understand! Thanks for it :)

Posted by browsergames-player on February 13, 2011 at 08:12 PM PST #

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