Skip to main content

Dynamic Languages support in GlassFish v3 Prelude

Posted by vivekp on November 6, 2008 at 6:33 PM PST

height="144" width="200">

By now most of you might already know that  GlassFish v3
Prelude is   href="">released!
GlassFish v3 Prelude brings not only JavaEE support but also brings
in support for Dynamic Languages based platforms, such as Rails, Grails
and also tested to work for Scala/Lift, PHP (Quecus, Java-PHP

Read Jerome's href="">post
on GlassFish v3 key architectural points that enables pluggable

Following dynamic languages based frameworks are supported on GlassFish
v3 Prelude:

JRuby on Rails

Ruby on Rails applications are supported in the pure native form using
JRuby runtime. There is Rails container in GlassFish v3 that deploys
and passes on the request and response to Rails using Grizzly. Since
Rails is single threaded, there is JRuby runtime pool, which can be
configured for scaling well.

There is also href="">GlassFish
Ruby gem. The GlassFish gem is
based on GlassFish v3 nucleus, this means you are running/testing your
Rails applications against the same GlassFish server bits. Read href="">here
on how to use GlassFish gem.

Read href="">here
for more details on how JRuby on Rails works and key features.

Also note that JRuby and Rails deployment on Glassfish v3 Prelude is
commercially supported by Sun.

Groovy on Grails

GlassFish v3 Prelude Update Center provides Grails package which is
Grails 1.0.3 plus value additions
from GlassFish. Here are some key points:

  • Development and deployment
    on the same server
    • grails run-app runs
      GlassFish v3 Prelude in embedded mode
  •  Efficient
    packaging and deployment
    • grails shared-war creates
      a smaller and efficient grails application
    • Hot deployment without
      OOM/PermGen href="">issue 
      • Deploying war file
        created with 'grails war' command has certain issues with with respect
        to href="">locks
        in groovy and HSQLDB's href="">issue.
        These issues cause OOM due to lack of PermGen space on multiple
      • grails shared-war
        minimizes it in orders of magnitude

See href="">Getting
Started guide and don't miss
Alexis  screencast href="">From Zero to
Grails in 5 minutes with GlassFish v3 Prelude.


Quercus (Caucho)

  • Open Source (GPL) PHP 5
    implementation in Java
  • WAR packaging
  • WordPress, MediaWiki, phpBB,

PHP/Java Bridge

  • Open Source (LGPL)
  • XML based network protocol
    for native PHP
  • Faster, easier than JNI
  • Java native threads used for
    concurrent requests
  • PHP and JSP session sharing


  • Lifts apps packaged as WAR
    • asadmin deploy liftApp.war
  • For details on developing
    and deploying Lift applications on GlassFish v3, see href="">here

Get href="">GlassFish
v3 Prelude and start developing
applications on it. As always let us know what you think through the href="">mailing list
or report an issue on the href="">issue

Related Topics >>