Developing and deploying your Rails application on the Sun GlassFish Enterprise Server gives you the following advantages over using a typical web server used for running Rails applications:
A simple, integrated deployment environment. In other words, you do not need one set of software for developing the application and another set of software for deploying it.
The ability to deploy multiple Rails applications to a single GlassFish Server instance.
The ability of a Rails application to handle multiple requests.
You have the following options for deploying a Rails application on GlassFish Server:
Deploy the application as a directory to the Enterprise Server v3.
Run the application using GlassFish v3 Gem.
A Gem is a Ruby package that contains a library or an application. In fact, Rails itself is a Gem that is installed on JRuby. For more details on GlassFish v3 Gem, see GlassFish v3 Gem.