GlassFish Updatecenter module for JRuby 1.0.2

"JRuby on GlassFish" Updatecenter module containing JRuby 1.0.2

Since JRuby 1.0.2 has been released for some time it was time that the GlassFish updatecenter module was updated to make use of these JRuby bits. As of last week we now have a new version of the "JRuby in GlassFish" updatecenter module. This is version 2.0 of the module and would be available when you launch the updatetool from your GlassFish installation/updatecenter/bin directory of your GlassFish v2 Update Release installation.


Contents of the JRuby on GlassFish 2.0 module

This JRuby update center module primarily consists of JRuby 1.0.2 and Goldspike revision 808. The JRuby 1.0.2 source bits that are part of this module, have been updated with the following gems :



Installing the JRuby on GlassFish module

Let us refer to GlassFish root directory location as $GLASSFISH_ROOT for the course of this blog. After installing GlassFish V2 Update Release run the Update Center client

  $GLASSFISH_ROOT/updatecenter/bin/updatetool

Then you should see "JRuby on GlassFish" as one of the available modules.



Accept the license agreement to install this module. After the successful installation of this module, you would see a new directory "jruby" created under your GlassFish root directory. A screenshot of the JRuby module directory


The layout of the directory created by the update center module 2.0 is different from the previous module to help support multiple jruby installations.


Web application modes
Since this JRuby update center module bundles Goldspike we also support the 2 modes - "Standalone" and "Shared", of deploying a RubyOnRails (ROR) application to a GlassFish application server instance. For this blog we would be using the directory deployment feature of GlassFish.
  • "Standalone" mode implies that the resulting Web application archive (WAR) would be self contained, i.e. it would contain not only the application, but also the JRuby, Rails, Goldspike libraries.
  • "Shared" mode implies that the WAR would just contain the WEB-INF/web.xml file along with the application. The libraries required for the application to run successfully would be picked up from the classpath of the GlassFish application server instance.

Post Installation steps
If you plan to use the "Shared" mode you would have to perform one additional step. After the successful installation of the JRuby update center module copy the required libraries to the GlassFish library directory and restart the GlassFish application server instance (for these libraries to be picked up by the running instance). The commands to be used are :
  asadmin stop-domain domain1    (Stop the application server if it is running)
  cp $GLASSFISH_ROOT/jruby/jruby-1.0.2/lib/jruby-complete.jar $GLASSFISH_ROOT/lib
  cp $GLASSFISH_ROOT/jruby/goldspike/target/goldspike-1.4-SNAPSHOT.jar $GLASSFISH_ROOT/lib
  cp $GLASSFISH_ROOT/jruby/goldspike/target/commons-pool-1.3.jar $GLASSFISH_ROOT/lib
  asadmin start-domain domain1   (Start the application server instance)

Sample Applications
This module comes with 3 sample applications -
  • HelloWorldRailsApp - a simple hello world application
  • cookbook - sample created using instructions from O'Reilly OnLamp
  • mephisto - version 0.7.3 of Mephisto blogging
In each of these sample application directory there is a file GLASSFISH_README, which provides information on how to deploy and run the application.
Comments:

[Trackback] Pramod updated the JRuby-on-GlassFish module on the GlassFish Update Center with JRuby 1.0.2, Rails 1.2.6 and Goldspike revision 808. I created a standalone (self-contained with all the libraries, gems & plug-ins) and shared (contains only web.xml ...

Posted by Arun Gupta's Blog on December 16, 2007 at 10:24 PM PST #

[Trackback] Merry Christmas! And guess what, Santa has been delivering gifts through out December: Roller 4.0 (Dec 5) JRuby 1.0.2 module on GlassFish Update Center (Dec 12) NetBeans 6.0 (Dec 12) GlassFish v3 Preview (Dec 13) JRuby 1.0.3 (Dec 15) jMaki...

Posted by Arun Gupta's Blog on December 25, 2007 at 04:49 AM PST #

Free Reverse Cell Phone # Lookup Get Free Owner Information About Any Cell Phone...
Cell Phone Reverse Lookup - Search Free Any Phone Gets You People Data-Name, Address, Age & More....
http://www.cell-phone-lookups.info

Posted by cellphonelookup on September 07, 2009 at 05:15 PM PDT #

Thank you so much for this post, it was very insightful!

rip blu ray http://www.ripbluray.us/
rip blu ray for mac http://www.ripblurayformac.com/blu-ray-ripper-for-mac.html
rip blu ray disc http://www.ripbluray.us/blurayripper.html
mac blu ray ripper http://www.ripblurayformac.com/blu-ray-ripper-for-mac.html
mkv to blu ray burner http://www.ripbluray.us/burnbluray/b

Posted by besthdsoft on December 28, 2009 at 03:47 PM PST #

You had some nice points here. I done a research on the topic and got most people will agree with your blog.

Posted by internetmarketing on October 04, 2010 at 05:05 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

pramodg

Search

Categories
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