Friday, April 06, 2007

Rails on JRuby makes Rails deployment a breeze

Currently, deploying a Rails application sucks. Rails not beeing thread-safe has the consequence that we must use multi-process deployment scenarios.

Well, not anymore. At least not with Rails running on the JVM using JRuby. Look at this post, where Charles Nutter discusses deployment of Rails on a Glassfish application server as a single war.

Apparently, simply by instantiating multiple JRuby runtimes inside the war file, we are able to circumvent the problem of thread-safety in the Rails framework. Just have to make sure there is only one active thread in each JRuby runtime.

1 comment:

Steve Lewis said...

Killer. I'm in Java guy django/python-land right now, but I'll definitely have to check JRuby out once it's ready on the Java platform.