Search |
|||||||||||||||
GlassFish v3 Ruby Gem - New Home on RubyForgePosted by arungupta on February 8, 2008 at 4:31 AM PST
UPDATE (Feb 14): A 0.1.1 version of the gem is released which will change the installation process. The Gem was originally announced here and then updated here. All along, the Gem was living a nomadic life on download.java.net. Now it has found a permanent home on http://rubyforge.org/projects/glassfishgem/. We are excited to release version 0.1.0 of Gem co-located with other standard gems such as RubyGems, Rails and RMagick. This new and permanent home provides a much more seamless installation of v3 gem. Here are the highlights:
After you've downloaded and unzipped JRuby 1.0.3, go to JRUBY_HOME directory and install the gem by giving the following command: bin/jruby -S gem install GlassFishOnce the gem is installed, " glassfish_rails"
script is available in JRUBY_HOME/bin
directory. The exact same commands work for installing the gem in JRuby
1.1RC1 as well.How to deploy an application on Gem ? TOTD #24 shows how to develop a JRuby-on-Rails applications with JRuby 1.0.3 and JRuby 1.1 RC1 and tested using WEBrick. To deploy these applications on the newly installed gem, use the following command: cd .. (go to parent directory of the application)Now the app is deployed at " http://localhost:8080/hello/say/hello".How to configure the number of concurrent requests ? The default number of concurrent requests that can be handled by an application deployed Gem is 1. If your application hosted on the Gem needs to handle concurrent requests then you need to specify the command-line option " -J-Djruby.runtime=NNN",
where NNN is
the number of expected concurrent requests. For example, if your
application needs to handle 4 concurrent requests then the command to
host your application will look like:jruby -J-Djruby.runtime=4 -S glassfish_rails helloHow to host multiple applications ? Multiple applications can be hosted on GlassFish gem by modifying the default port number on which the Gem is started. The ports that need to be changed are: " http-listener-1", "http-listener-2"
and "admin-listener". For now, the port numbers need to be modified by manually editing " jruby-1.0.3/lib/ruby/gems/1.8/gems/GlassFish-0.1.0-java/domains/domain1/config/domain.xml"
file. Search for the string in first column, replace the port attribute
of that XML element with the value in second column and the third
column shows the default value:
Any subsequent application deployed on GlassFish gem will now be hosted on http://localhost:8081/<context-root>/<controller>/<view> where <context-root> is the name of your Rails application. A command-line switch, similar " -J-Djruby.rutime"
will be provided in
the near future.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 »
Related Topics >>
Web Applications Comments
Comments are listed in date ascending order (oldest first)
|
|||||||||||||||
|