Pramod released an updated version 0.1.1 of the JRuby GlassFish v3 gem.
What’s New ? – Mainly alignment with Rails convention
- The name of the gem is changed from “GlassFish” to “glassfish”.
- The default port number is 3000.
- Applications are deployed at root context (“/”). So the default application is now deployed “
http://localhost:3000/home/index” instead of “http://localhost:8080/temp/home/index“.
And then there are some other improvements:
- The number of concurrent requests can now be set using a command-line argument (instead of “-J-Djruby.runtime”). So 2 Rails instances can be created using the following command:
jruby -S glassfish_rails temp -n 2 - Rails instances are created in parallel to improve the startup time of the gem.
How to install it ?
If you installed 0.1.0 version of the gem, then you need to uninstall using the following command:
bin/jruby -S gem uninstall GlassFish
Successfully uninstalled GlassFish-0.1.0-java
Remove executables and scripts for
'glassfish_rails, asadmin, asadmin.bat' in addition to the gem? [Yn] Y
Removing glassfish_rails
Removing asadmin
Removing asadmin.bat
And then install the new gem using the following command:
bin/jruby -S gem install glassfish
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Successfully installed glassfish-0.1.1-universal-java
1 gem installed
And for a fresh check out of JRuby trunk, here is the list of gems shown:
bin/jruby -S gem list
*** LOCAL GEMS ***
actionmailer (2.0.2)
actionpack (2.0.2)
activerecord (2.0.2)
activeresource (2.0.2)
activesupport (2.0.2)
glassfish (0.1.1)
rails (2.0.2)
rake (0.8.1)
sources (0.0.1)
Read more details about the this newly released gem here.
All the latest information about the gem can be found at GlassFish JRuby wiki or JRuby wiki.
Please use the gem and send us feedback on GlassFish forums, dev@glassfish or gem mailing list.
File issues in JIRA or GlassFish Issue Tracker.
Technorati: ruby jruby glassfish v3 gem rubyforge rubyonrails
Related posts:
Wow – you guys are turning around updates quickly! Congrats on moving to the root context – that was a show-stopper for many.
Comment by Brian Ketelsen — February 14, 2008 @ 10:08 am
Thanks Brian. I have been actively working on the gem and do want to provide updates frequently. Please be patient.
Comment by Pramod Gopinath — February 14, 2008 @ 11:13 am
[Trackback] GlassFish v3 Gem allows JRuby-on-Rails application to be launched in GlassFish v3 server. It provides a robust alternative to WEBrick and Mongrel for development and deployment of your JRuby-on-Rails applications. UPDATE (Feb 14): A 0.1.1 version of t…
Comment by Arun Gupta's Blog — February 14, 2008 @ 1:32 pm
[Trackback] Rails 2.0 changes the way Scaffold works. This blog walks you through the steps to create a simple CRUD application using Scaffold in Rails 2.0. Download & Install JRuby 1.1 RC2. Install Rails using the following command: jruby -S gem…
Comment by Arun Gupta's Blog — February 20, 2008 @ 12:11 am
[Trackback] Pramod announced the release of GlassFish v3 Gem ver 0.1.2. The focus of this release is bugfixes: IssueTracker #4228: Duplicate entries for Scaffold generated by Rails 2.0.2 IssueTracker #3966: Blank page returned if no Rails instance is available Ru…
Comment by Arun Gupta's Blog — March 13, 2008 @ 8:23 pm
[Trackback] Vivek released 0.3.0 version of GlassFish Gem for Rails (a total of 11 issues fixed and resolved – RubyForge & GlassFish Issue Tracker) earlier. But that caused a regression on #4228. And so matching the agility expected by Rails developers, h…
Comment by Arun Gupta's Blog — June 25, 2008 @ 6:42 am