GlassFish v3 gem on JRuby 1.1 RC2
JRuby 1.1 RC2 was released
href="http://www.bloglines.com/blog/ThomasEEnebo?id=42">earlier
today an
href="http://rubyforge.org/projects/glassfishgem/">GlassFish
v3 gem works like a charm on it :)
Read the complete announcement
href="http://www.bloglines.com/blog/ThomasEEnebo?id=42">here.
The key features of RC2 are:
- 260 issues resolved
- Large IO refactoring
- Less memory than previous release
- Control total number of JIT'd methods
- Support a JIT cache between runtimes to return permgen
- 50-70% reduction in generated methods
Here are the steps for quick verification on v3 gem ...
- Download
href="http://dist.codehaus.org/jruby/jruby-bin-1.1RC2.zip">JRuby
1.1 RC2. - Install Rails and create a simple Rails application as
described in href="http://blogs.sun.com/arungupta/entry/totd_24_getting_started_with">TOTD
#24. - Install GlassFish v3 gem using the command as shown below:
bin/jruby -S gem install
glassfish
<br>
JRuby limited openssl loaded. gem install jruby-openssl for full
support.<br>
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL<br>
Successfully installed glassfish-0.1.1-universal-java<br>
1 gem installed - And now the simple application can be easily deployed on
GlassFish gem as:
jruby -S glassfish_rails hello
Notice this command needs to be given from the parent directory of the
application. The Applcation environment is as shown below:
alt="JRuby 1.1 RC2 Application Environment"
title="JRuby 1.1 RC2 Application Environment"
src="http://blogs.sun.com/arungupta/resource/ror/jruby1.1rc2-app-environment.png">
and the application output looks like exactly as expected:
alt="JRuby 1.1 RC2 Application Output"
title="JRuby 1.1 RC2 Application Output"
src="http://blogs.sun.com/arungupta/resource/ror/jruby1.1rc2-v3gem-firstapp-output.png">
More details about GlassFish and JRuby can be found @
href="http://wiki.glassfish.java.net/Wiki.jsp?page=JRuby">GlassFish
wiki and
href="http://wiki.jruby.org/wiki/JRuby_on_Rails_in_GlassFish">JRuby
wiki. Help us test your application on the v3 gem and file
issues in
href="http://rubyforge.org/tracker/?func=add&group_id=5450&atid=21080">JIRA
or
href="https://glassfish.dev.java.net/issues/enter_bug.cgi?issue_type=DEFECT">GlassFish
Issue Tracker.
Please use the gem and send us feedback on
href="http://forums.java.net/jive/forum.jspa?forumID=56">GlassFish
forums, dev@glassfish
or gem
mailing list.
Technorati: jruby
ruby
href="http://technorati.com/tag/rubyonrails">rubyonrails
glassfish
v3
href="http://technorati.com/tag/gem">gem
- Login or register to post comments
- Printer-friendly version
- arungupta's blog
- 1757 reads






Comments
by peterd3gb - 2008-02-22 09:18
Ok, I figured out how to add new platform to netbeans by giving in the appropriate jruby or ruby bat file. And the new rc2 complete jar was uploaded on the 18th. Now I am still having this Tomcat issue because RC2 has a different scheme for finding gems than RC1. Help! Thanks, Peterby peterd3gb - 2008-02-18 09:22
Arun, Two more related issues, what about jruby-complete I don't see a new version. Is it still needed to deploy to say Tomcat? Also as far as gem, when I am running in Tomcat, jruby points to this 'default user\.jruby' directory for all the gems even though they are included in the war. Does this explosion happen at deployment time?by peterd3gb - 2008-02-18 08:12
It's not clear to me how to add RC2 to netbeans 6.1 m1. It supports multiple ruby platform. It expect a file with a specific format to help it identify the platform. I don't see such a file in the zip. Thanks, Peter