users@glassfish.java.net

Deploying jruby + rails + spring on GlassfishV3 ?

From: Ijonas Kisselbach <ijonas.kisselbach_at_gmail.com>
Date: Thu, 13 Aug 2009 16:47:51 +0100

Hi,

Apologies if you read this on the JRuby mailing list... its a half-JRuby
half-Glassfish question...

I've got a JRuby On Rails application which has a dependency on Spring
and JMS. I've got it happily deploying as a WAR file and as an
"exploded WAR", i.e. a folder, inside JBoss proving both database,
Spring, and JMS connectivity.

However I'd like to be able to develop the Rails app similarly to
developing MRI-based Rails using Webrick/Mongrel, i.e. with the
ability to edit controllers and views and see those changes by a mere
refresh of the browser and not as is currently the case by going
through a webapp-redeploy process.

From reading and messing about with Glassfish V3, it seems this is my
best option to get the desired kind of development environment setup.
All the docs I've read on Kenai and Anul Gupta's blog deal with the
"simple" or typical Rails app, i.e. standard MVC with no dependency on
Spring.

My question is: is my "desired" setup currently possible using
Glassfish V3? If so, can someone point me to some docs that explain
how to achieve this ? For example, I'm not sure if I should deploy as
a Rails app or as WEB-INF/Servlet app inside Glassfish V3 ?
Many thanks,
Ijonas Kisselbach.