# Message Queue for Rails?

**URL:** <https://discuss.rubyonrails.org/t/message-queue-for-rails/40956>\
**Category:** rubyonrails-talk\
**Created:** [March 28, 2009, 1:29am UTC](https://discuss.rubyonrails.org/t/message-queue-for-rails/40956 "2009-03-28T01:29:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [March 28, 2009, 1:29am UTC](https://discuss.rubyonrails.org/t/message-queue-for-rails/40956/1 "2009-03-28T01:29:16Z")

</div>

So, MQ was an active area for a while with several contenders like AP4R.

Many libs seemed focused on triggering long or scheduled processes, and not really for connecting many small apps together to build responses for a Rails front-end app.

After some googling, it seems like activity has dies off. AP4R seems to have stalled (I can't find anything newer than a year old). None of the projects that surfaced from 05 through 08 seems to have become the de facto "winner" that I can see.

I'm looking for a MQ system that's not about just offloading long or scheduled activities, but for real-time messaging to connect several small independent Rails/Ruby apps to build a Rails page.

I'm hoping to find something that can handle a number of different data formats for replies (XML, YAML, native AR objects or maybe even marshalled ruby objects).

Any suggestions on the best contenders?

-- gw

---

<div class="post-metadata">

**Author:** ![AD13](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@AD13](https://discuss.rubyonrails.org/u/AD13)\
**Post date:** [March 28, 2009, 1:51am UTC](https://discuss.rubyonrails.org/t/message-queue-for-rails/40956/2 "2009-03-28T01:51:46Z")

</div>

Jruby + JMS is your best bet. That is what I do and works great.

Adam

---

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [March 28, 2009, 2:15am UTC](https://discuss.rubyonrails.org/t/message-queue-for-rails/40956/3 "2009-03-28T02:15:47Z")

</div>

After continuing to sift through older articles and following up, I'm finding som e stuff about Apache's ActiveMQ / ActiveMessaging / STOMP. Still sorting through what it does and how it integrates. Most info is again from 2007. Anyone have any recent interaction with this setup?

-- gw

---

<div class="post-metadata">

**Author:** ![Christian\_Lupp](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Christian\_Lupp](https://discuss.rubyonrails.org/u/Christian_Lupp)\
**Post date:** [March 28, 2009, 9:00am UTC](https://discuss.rubyonrails.org/t/message-queue-for-rails/40956/4 "2009-03-28T09:00:12Z")

</div>

Maik Schmidt's PragProg-book "Enterprise Recipes with Ruby and Rails" may help you out 😉 He's using ActiveMQ and is integrating JMS with Ruby as well as Active Messaging.

my2cents,

Chris
