users@glassfish.java.net

Re: Running Multiple JRuby on Rails Applications using the Glassfish Gem

From: <glassfish_at_javadesktop.org>
Date: Sat, 31 May 2008 04:25:43 PDT

Hello,
I had the same requirement.
Since jruby footprint is not too big, I just managed to install one instance of jruby in each rails application root folder.
Each of my rails application folder looks like:

railsApp:
  app/
  config/
  db/
  ....
  jruby/
  ....
  vendor/
  README
  Rakefile

then I install the gem GlassFish in each of my jruby instances:
   ./jruby -S gem install glassfish
I tune the domain.xml file to set specific ports corresponding to my rails app
then I just have to do
  ./jruby -S glassfish_rails railsApp
for each of my application

Hope this would help
[Message sent by forum member 'sacketty' (sacketty)]

http://forums.java.net/jive/thread.jspa?messageID=277691