A newer GlassFish V3 gem for JRuby and its known limitations
It has been a while since a new version of the GlassFish V3 gem for JRuby was last released. Since I have picked up the effort of maintaining this gem from Jerome, thought I would start by releasing a version based on the latest GlassFish V3 bits. Additionally I have made one change to the gem, by creating 2 Rails instances where only one was being created before.
Known Limitations of the gem
Since we are targeting this gem to be used in the development environment, the gem should at a minimum provide for the functionalities that Webrick provides. Below I have listed out the limitations of the gem in the curent form. I would be working on improving the gem to fix these issues.
- The gem starts up by default on port 8080 and the only way to change the port is by manually editing the port entry in domain.xml. There should be support for --port option to provide a port to the gem.
- If the default port is being used, then the gem should look for the sequential port that could be used to start up.
- Requests made to the process launched using
jruby -S glassfish_rails
are not being queued up. Hence if there is no rails instance available to satisfy the request, then the next request is returned with a blank page. This has already been reported by the users with the earlier gem. - Creating rails instances to be pooled is a time consuming process. Based on tests on my Macbook pro, found the following when using JRuby 1.0.3
- 1 rails instance takes 8-9secs,
- 2 rails instance 10-11secs,
- 3 rails instance 12-13secs,
- 4 rails instance 14-16secs,
- 5 rails instance 16-18secs,
Please feel free to add your comments to this blog to improve the GlassFish gem.
Posted by pramodg [Sun] ( January 04, 2008 10:09 AM ) Permalink | Comments[6]

Posted by Arun Gupta's Blog on January 05, 2008 at 06:27 AM PST #
It seems that the very latest JRuby 1.1RC1 can't run this gem, due to missing /removed method Ruby.parse().
I've filed a JRuby issue for that: http://jira.codehaus.org/browse/JRUBY-1925
Thanks,
--Vladimir
Posted by Vladimir Sizikov on January 08, 2008 at 01:19 PM PST #
If this gem is targeted to development, what are you suggesting people use in production?
Posted by James Moore on January 10, 2008 at 03:30 PM PST #
Since GlassFish V3 is in the early stages of development we have released the gem as a development environment. For production our recommendation is to use GlassFish V2 as the platform. GF V2 is a well tested platform platform hence this recommendation.
Currently GlassFish V2 does not support native support for ROR, hence you would have to package their application as a WAR - using Goldspike, warbler. Once the WAR has been successfully created you could then deploy it to the GlassFish V2 server.
Thanks
Pramod
Posted by Pramod Gopinath on January 14, 2008 at 08:08 AM PST #
Hi Vladimir
Effective from Glassfish v3 gem v0.1.0 which is now hosted on RubyForge, the gem should work with both JRuby 1.0.x and JRuby 1.1x versions.
We were relying on internal methods and hence the code was not functioning when the JRuby versions were switched.
Thanks
Pramod
Posted by Pramod Gopinath on February 15, 2008 at 08:02 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 08, 2009 at 12:18 AM PDT #