Getting Started With JRuby on Rails for Sun GlassFish Enterprise Server v3 Prelude

ProcedureDeploying a Rails Application to the GlassFish v3 Gem

  1. Go to <JRUBY_HOME>/samples.

  2. Deploy the hello application:

    jruby -S glassfish_rails helloV3

    When the GlassFish instance is finished launching, you should see output similar to the following:

    INFO: Rails instance instantiation took : 37754ms
  3. Run the application using the following URL in your web browser:

    http://localhost:3000/home/index

    You should now see the following message in your browser window:

    Welcome to JRuby on Rails on the Sun GlassFish Enterprise Server!

    Notice that the GlassFish v3 Gem runs on port 3000, not 8080.