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.
« BSC Scobelized | Main | JRuby on Rails:... »

http://blogs.sun.com/arungupta/date/20070808 Wednesday August 08, 2007

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

del.icio.us | furl | simpy | slashdot | technorati | digg
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 11: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 07: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 09: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 05:41 PM 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 05:52 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 Glen on August 16, 2007 at 12:58 PM 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 20, 2007 at 05:56 AM 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 20, 2007 at 05:58 AM 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 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] 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 07, 2007 at 05:36 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
« BSC Scobelized | Main | JRuby on Rails:... »

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 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 windows wsaddressing wsit
Project Tango: Adding Quality of Service and .NET Interoperability to the Metro Web Services Stack
Locations of visitors to this page

calendar

« May 2008
SunMonTueWedThuFriSat
    
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today

Stats

Today's Page Hits: 23


Total # blog entries: 594
Total # comments: 1619

www.flickr.com
This is a Flickr badge showing public photos from ArunGupta. Make your own badge here.
Add to Technorati Favorites

Last 50