Tuesday, March 30, 2010

Converting Ruby/Rails JMS to JRuby/Glassfish/OpenMQ

I have been working lately on trying to get the existing stack - which is a Ruby on Rails app utilizing ActiveMessaging with ActiveMQ via Stomp - and getting it to work completely within a Glassfish JRuby container, using JMS and OpenMQ instead.

It has been challenging for sure, but am making progress little by little. I will be posting any progress I make soon after I get some of the issues ironed out.

Some of the issues I am working on include:
  • Converting current separate daemonized pollers that are the message queue listeners into either jruby pollers or separate jruby classes that run in the same VM as the main app itself (as opposed to running a separate 'jruby' call of some sort).
  • Getting the messaging.rb/broker.yml to use jms and jndi lookups for the ConnectionFactories.
  • How to use/register OSGi bundles in the environment so that they can be queried and monitored.
  • Converting existing component/plugins from a combination of java component (which use sysjava as daemon wrappers) and ruby components into OSGi bundle plugins.
  • Many more... :)
 I will update the solutions as they are worked through.

No comments:

Post a Comment