title: How to make/monitor/deploy daemon processes in JRuby
body: <p>I'm currently porting a Rails App currently using REE to JRuby so I can offer an easy-to-install JRuby alternative.</p>
  
  <p>I've bundled the app into a WAR file using Bundler which I'm currently deploying to GlassFish. However, this app has a couple of daemon processes and it would be ideal if these could be part of the WAR file, and potentially monitored by Glassfish (if possible). </p>
  
  <p>I've looked at QuartzScheduler, and while meets my needs for a couple of things, I have a daemon process that must execute every 20 seconds as it's polling the database for any delayed mail to send.</p>
  
  <p>If anyone can provide any insight as to how best to set up daemon processes in a JRuby/Java/Glassfish environment any help will be greatly appreciated! :)</p>