I have an app that I am migrating from Ruby to JRuby (due to need for better Web Service Security support via Java). One of the gems I use is daemons to create a background
You might be interested in http://torquebox.org/ it includes scheduling.