GlassFish gem 1.0.0 is available
To install, simply type the following on a JRuby installation:
$ gem install glassfish
New features in this release
- Implemented using GlassFish v3 embedded API.
- Startup time improvement. Almost 15-18% faster startup.
- Full Rack compliance
- Support for running GlassFish gem by passing code block
GlassFish::Server.start(:address=>"127.0.0.1", :port=>4000) do
use Rack::CommonLogger
use Rack::ShowExceptions
map "/hello" do
use Rack::Lint
run Proc.new {[200, {"Content-Type" => "text/html"}, "Hello"]}
end
In the code above, GlassFish is started on port 4000 and it binds to port 127.0.0.1. After it starts up and when the first request arrives it runs the given code block. The code block is using Rack middlewares such as CommonLogger and ShowException for better debugging during development. The actual Rack application code is minimalistic which returns "Hello" as content body with HTTP status code 200 and HTTP header ContentType.
- Lots of fixes for Sinatra support (extensions, middleware etc.)
- New -a CLI switch to bind to a given IP address
- Improved support for running Rackup scripts
- Grizzly (NIO based HTTP library) configuration thru glassfish.yml
Below is the default Grizzly configuration for GlassFish gem.

Bug fixes
Checkout the release notes and as always keep using it and send us feedback either at RubyForge or to users@glassfish.dev.java.net.
- Login or register to post comments
- Printer-friendly version
- vivekp's blog
- 1701 reads





