How to make/monitor/deploy daemon processes in JRuby

Posted by nazdrug on Stack Overflow See other posts from Stack Overflow or by nazdrug
Published on 2010-05-31T10:07:52Z Indexed on 2010/05/31 10:12 UTC
Read the original article Hit count: 232

Filed under:
|
|
|

I'm currently porting a Rails App currently using REE to JRuby so I can offer an easy-to-install JRuby alternative.

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).

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.

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! :)

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about glassfish