IBM Developerworks have published a
tutorial on using JRuby on Rails in conjunction with Apache Derby, an embedded Java relational database system.
The article covers application creation, Rails scaffolding, generators and finishes off with a brief look at using IDEs to build these projects.