 |
GlassFish v3 Gem - 0.1.1 available
Posted by arungupta on February 14, 2008 at 06:51 AM | Comments (5)
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
Bookmark blog post: del.icio.us Digg DZone Furl Reddit
Comments
Comments are listed in date ascending order (oldest first) | Post Comment
-
hi arun,
thanks for the notes.
I'm trying to install the glassfish gem inside a corporate firewall.
C:\jTools\jruby-1.1b1\bin>jruby -S gem install glassfish
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Connection refused(Errno::ECONNREFUSED)
C:\jTools\jruby-1.1b1\bin>
So, I'm wondering what I need to do in order to get beyond the windows ISA firewall ?
thank you,
BR,
~A
Posted by: anjanb2 on February 14, 2008 at 11:17 AM
-
hi arun, thanks for the notes. I'm trying to install the glassfish gem inside a corporate firewall.
C:\jTools\jruby-1.1b1\bin>jruby -S gem install glassfish
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Connection refused(Errno::ECONNREFUSED)
C:\jTools\jruby-1.1b1\bin>
So, I'm wondering what I need to do in order to get beyond the windows ISA firewall ?
thank you, BR, ~A
Posted by: anjanb2 on February 14, 2008 at 11:19 AM
-
hi arun,
it will be interesting to know some numbers about how well the application behaves if the number of concurrent requests is set to 50. How much RAM does it need ? What is the startup time ?
BTW, does this glassfish just have the bits needed for JDBC access and stuff like that ?
Thank you,
BR,
~A
Posted by: anjanb2 on February 14, 2008 at 11:24 AM
-
"jruby -S gem help install" shows the following option:
-p, --[no-]http-proxy [URL] Use HTTP proxy for remote operations
Try "jruby -S gem install glassfish -p http://proxyhost:proxyport"
BTW, I installed inside corporate firewall as well.
We have not done any performance benchmarks with v3 gem for now. Let us know if you run any tests.
Posted by: arungupta on February 14, 2008 at 11:31 AM
-
hi arun,
I tried the following
C:\jTools\jruby-1.1b1\bin>jruby -S gem install glassfish -p http://whqisa.ad.nike.com:8080
ERROR: While executing gem ... (NoMethodError)
undefined method `[]=' for #
C:\jTools\jruby-1.1b1\bin>
Any ideas ?
Thank you,
BR,
~A
Posted by: anjanb2 on February 14, 2008 at 11:53 AM
|