Developing and deploying Rails applications on Oracle GlassFish Server offers several advantages over using a typical web server for running Rails applications:
Provides a simple, integrated deployment environment; develop and deploy from a single toolkit
Enables deployment of multiple Rails applications to a single GlassFish Server instance
Makes it possible to configure a single Rails application to handle multiple requests
Rails applications can be deployed on GlassFish Server in either of two ways:
Deploy the application to a directory in the GlassFish Server domain.
Run the application using GlassFish v3 Gem.
A Gem is a Ruby package that contains a library or an application. Rails itself is a Gem that is installed on JRuby. See GlassFish v3 Gem for more information.