Jetty Rails
Get Version
0.5→ ‘jetty-rails’
What
See the what is included in the last version.
Jetty Rails aims to run any Warbler based JRuby on Rails or JRuby Merb applications with Jetty Container, loading configuration from Warbler.
This project is useful for people developing JRuby on Rails (or Merb) applications that can not use mongrel for development. Rails and Merb applications integrated with servlet based applications in the same context would be a reasonable reason.
The project has born from my own needs (read more). I needed to run JForum on the same context of my jruby on rails application. I had also to integrate HttpSessions (avoiding single sign on) and use ServletContext in-memory cache store.
Installing
jruby -S gem install jetty-rails
The basics
Jetty Rails uses Jetty Handlers to dispatch requests to the JRuby Rack adapter.
All extra jars inside your application lib/ dir will be loaded. Things like Java HttpSession, ServletContext and Runtime Pools are given by JRuby Rack Filter.
Demonstration of usage
Rails:cd myrailsapp jruby -S jetty_railsMerb:
cd mymerbapp jruby -S jetty_merb
—help option shows usage details:
jruby -S jetty_rails --help
jruby -S jetty_merb --help
Please note that you may only use Merb with ActiveRecord, as DataMapper doesn’t work in JRuby yet.
More Documentation
Mailing list
http://groups.google.com/group/jetty-rails
Getting the source
github: http://github.com/fabiokung/jetty-rails/tree/master
git clone git://github.com/fabiokung/jetty-rails.git
Build and test instructions
cd jetty-rails jruby -S rake # run specs jruby -S rake package jruby -S gem install pkg/*.gem
License
Jetty Rails is distributed under the terms of The MIT License.
Copyright© 2008 Fabio Kung
Read more details in the bundled Licenses.txt file. There are other pieces of software bundled with jetty-rails. Before using jetty-rails, make sure you agree with all of them.
Contact
Comments are welcome. Send an email to Fabio Kung via the mailing list
Fabio Kung, 10th June 2008
Theme extended from Paul Battley