Skip to main content

New and improved GlassFish gem

Posted by vivekp on November 7, 2008 at 3:55 PM PST


I am
pleased to announce a long awaited href="http://rubyforge.org/projects/glassfishgem/">GlassFish
gem
ver 0.9.0, it
is based on GlassFish v3 Prelude nucleus. This release of GlassFish gem
has everything that GlassFish v3 Prelude has to offer plus some new
features. See my href="http://weblogs.java.net/blog/vivekp/archive/2008/11/jruby_and_rails.html">post
on JRuby on Rails support in GlassFish v3 Prelude.

Installation

jruby -S gem install
glassfish

style="width: 607px; height: 121px;" alt="gfgem-install.png"
src="http://weblogs.java.net/blog/vivekp/archive/images/gfgem-install.png">

Key features

  • Based on GlassFish v3
    Prelude nucleus
    • GlassFish v3 Prelude is a
      production quality application server and the nucleus is based on this
      final version.
  • Rack based
    • GlassFish gem is Rack
      based. This means it would be pretty easy to add any Ruby based web
      frameworks, such as Merb, Camping, Sinatra, etc.
  • href="http://www.merbivore.com/">Merb
    support
    • Not just Rails, you can
      start running your Merb applications, simply type glassfish
      in your
      Merb application directory.
  • Autodetection of application
    framework
    • Simply type glassfish
      and it will detect what app you are running, whether Rails or Merb
    • It means you have to know
      about only one command style="font-weight: bold;">glassfish. glassfish_rails
      is deprected and supported for now due to backward compatibility
  • style="font-weight: bold;">-port
    or -p
    option to specify on which port your application run style="font-weight: bold;">s
  • style="font-weight: bold;">-environment or style="font-weight: bold;"> -e option
    to specify
    the Rails development
    environment, such as production, development or test
  •  JRuby runtime pool
    configuration
    • Much needed for scaling
      when running Rails 2.1.x applications
    • Not required if running
      Edge Rails (2.2). Because it is
      supposed to be MT or atleast MT safe.
    • Also, not required for Merb

style="font-weight: bold;">Issues Resolved

href="https://glassfish.dev.java.net/issues/show_bug.cgi?id=3964">3964 
Provide -port option to specify port for v3 gem

href="https://glassfish.dev.java.net/issues/show_bug.cgi?id=6470">6470 
HTTP keep-alive not honored

href="https://glassfish.dev.java.net/issues/show_bug.cgi?id=4823">4823 
glassfish_rails command should attempt to load the current directory if
none specified

href="https://glassfish.dev.java.net/issues/show_bug.cgi?id=5446">5446 
Jruby on Rails show request header in page

href="http://rubyforge.org/tracker/index.php?group_id=5450&atid=21080">21080
Issues reported at rubyforge

How to use?

Simply type glassfish in
your application directory. If not sure see help:



jruby -S glassfish -h

alt="gfgem-cmd.png"
src="http://weblogs.java.net/blog/vivekp/archive/images/gfgem-cmd.png"
height="476" width="554">

You can see the GlassFish gem documentation href="http://glassfishgem.rubyforge.org/">here.
Try it out and send your feedback to the href="http://rubyforge.org/forum/?group_id=5450">forum
report
issues at the href="http://rubyforge.org/tracker/?atid=21080&group_id=5450&func=browse">issue
tracker. style="font-weight: bold;">


Related Topics >>

Comments

The options remain the same. This has been fixed in GlassFish gem release 0.9.1.

glassfish-0.9.0-universal-java/modules% grep '\-\-runtime' command_line_parser.rb | head -n 3 [ '--runtimes', '-n', GetoptLong::REQUIRED_ARGUMENT ], [ '--runtimes_min', GetoptLong::REQUIRED_ARGUMENT ], [ '--runtimes_max', GetoptLong::REQUIRED_ARGUMENT ], the options are --runtimes_{min,max} - the help file should be updated

Missing URL, http://blogs.sun.com/Jacobkessler/entry/gem_0_9_0_released

Also see Jacob's post