An Endorsement for the GlassFish V3 gem
Changshin Lee aka ias, has launched a JRuby on Rails (JROR) application, GlassFish User Group -Korea using the GlassFish V3 gem for JRuby. Changshin Lee has been an early adopter of the gem and provided a lot of feedback in terms of the gem. He also presented the gem at a conference in Korea over the past weekend. Thanks for your patience. Further details can be found here.
The ground work for the gem was laid down by Jerome Dochez and Charles Nutter last year. There is still a lot to be done, but sure helps when users come back to us and inform us of how they are using the gem to solve their business needs.
Posted by pramodg
[Sun] ( February 21, 2008 09:42 AM )
Permalink
| Comments[3]
GlassFish v3 gem v0.1.1 for JRuby at RubyForge
In my previous blog I had informed you all of the the GlassFish v3 gem v0.1.0. The first release was pushed out last week so that Charles Nutter to demo at the acts_as_conference held last weekend. The gem was very well received at the conference and based on the feedback provided by the attendees, have decided to release a new version to address many of the common issues that were reported.
Issues being addressed in v0.1.1
The following issues are being addressed in this version (v0.1.1) of the gem :
- The name of the gem is being changed from GlassFish to glassfish. The rails naming convention for the gems is with all lower case or with names that contain underscore.
- Support for the applications to be deployed at the Root Context ("/") of the server. The Webrick and Mongrel servers deploy the application to the root context by default.
- Change the default port the server to be 3000 from 8080. Port 8080 has been the default http port of the GlassFish application server, but since we are targetting the Ruby on Rails market with this space, it is better to have the http port set to 3000. At this stage I have also changed the SSL port from the GlassFish default of 8181 to 3131 and the admin default port of 4848 to be 3838.
- Provide command arguments to the script to specify the number of runtime to be created. In v0.1.0 of the gem one could specify the number of runtimes if it was passed in as a specified as a java system property. With this version use could use the command
jruby -S glassfish_rails mephisto -n 2
to create 2 rails instance. - Create instances of rails in parallel. This would speed up the startup of the v3 gem
Main issues I plan to address in v0.1.2
Some of the main items that I plan to work on as part of the gem v0.1.2 :
- I have created the gem from the v3 code that was checked out on 02/08/2008. All the local changes are currently on my laptop. Would be working on getting these chages checked into the v3 code base and would publish steps on how to create a gem from the trunk. Currently there is a manual step involved in setting up the port. I would have to fix this before checking the code in the svn trunk.
- As part of this release was planning to add support for specifying RAILS_ENV as a command argument. But was running into some issues. Would like to provide this in the next release.
- Provide a way for users to provide a port portion as one of the command argument. This would involve making changes in the v3 code since currently the logic is in place to read the port from the config/domain.xml.
- There is growing interest for Merb and plan to interact with Nick Sieger to see how we can add support for Merb in the gem.
If you have installed the previous version of the gem please uninstall the gem using the command
jruby -S gem uninstall GlassFishInstall the new version of the gem using the command :
jruby -S gem install glassfish
Sample output from executing the glassfish gem v0.1.1 on my Macbook pro :
My JRuby environment :

Command line argument support :

Start Mephisto application :

Mephisto web request

Resources :
GlassFish JRuby wiki
JRuby wiki
Posted by pramodg [Sun] ( February 13, 2008 10:19 PM ) Permalink | Comments[7]
GlassFish v3 gem v0.1.0 for JRuby pushed out to RubyForge
In my previous blog I had pushed out a gem for GlassFish v3. This gem was available at download.java.net.Effective from last Thursday, I have hosted the gem at RubyForge.
Since RubyForge is the primary location from where developers get the various gems, decided to push out the GlassFish V3 gem also out there. This would help many developers test drive the gem and provide feedback to help us improve the gem further.
The gem released on RubyForge is governed by the same licensing scheme as GlassFish.
As part of publishing the gem to RubyForge the version number of the gem has been changed to 0.1.0. For those of you who had downloaded the gem using my previous blog, you would notice the version of the gem being displayed as 10.0.0. The history here is that since the gem was being created for GlassFish V3, the thought was that we would call it 10.0.0 to reflect the version of GlassFish (since 9.x version refers to the GlassFish v2). But since the gem is now being hosted at RubyForge, have decided to start with a version of 0.1.0.
If you have already installed the older version of the gem please uninstall the gem by using the command
gem uninstall GlassFishTo run this command ensure that you have set the $JRUBY_HOME/bin directory to your PATH environment variable.
Some useful commands :
Install the new gem :
gem install GlassFishGet more details of the gem :
gem specification GlassFish
Once the gem has been installed ensure that you are at the root of the application directory and run the command
jruby -S glassfish_rails application_directory_name.
For further details refer to the GlassFish V3 section of the Getting Started Guide.
Posted by pramodg [Sun] ( February 11, 2008 08:26 AM ) Permalink | Comments[2]
