Dynamic Languages on GlassFish
When a browser sends a request to GlassFish via HTTP (Grizzly), the GlassFish kernel delegates the request to the appropriate container for processing. All the containers have access to the common GlassFish security, configuration, naming and injection features.
In both v2 and v3, you can deploy a Ruby/Rails application on GlassFish by packaging it as a WAR file. In v3, this packaging is no longer required. Deployment can be automated using Capistrano. The NetBeans IDE 6.5 (All Bundle) supports development, debugging and deployment of Rails applications on GlassFish. There is also a lightweight GlassFish Gem, which is based on the GlassFish v3 kernel.
For Grails applications, GlassFish lets you create "shared-war" files which share the Grails core classes. The resulting files are much smaller than standard WAR files and less expensive to deploy.