Skip to content

Message Driven Beans in Jruby

by Topper on March 19th, 2009

It was hard to find a lot of documentation on how to create a Message Driven Bean (MDB) EJB (for deployment into glassfish). Basically – I want to create a ruby app that receives messages and then does stuff with them. After tons of looking around I was able to finally put together one using NetBeans.

http://github.com/tobowers/jruby-mdb/tree/master

I don’t have time now to go into the details… I, hopefully, will soon. However, edit the TesterMessageHandlerBean.java to change what message queue it listens to. Add or edit files in the src/conf/ruby directory to add ruby files.

Hope that helps… later I’ll go into more detail about setting up glassfish and using OpenMQ.

I hate java, but this is a pretty damn nice way to deploy your ruby apps. Hopefully, this’ll be a good start into letting us have ruby apps listening to OpenMQ in glassfish, but using jRuby.

From → Social Web

  • hello! You don’t have a way for me to get ahold of you via your blog, other than commenting. How do I reach you?

    Send me a note back, would enjoy getting introduced.