# Server Push, with Active MQ?

**URL:** <https://www.ruby-forum.com/t/server-push-with-active-mq/65106>\
**Category:** Rails\
**Created:** [August 16, 2006, 6:49am UTC](https://www.ruby-forum.com/t/server-push-with-active-mq/65106 "2006-08-16T06:49:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![makki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@makki](https://www.ruby-forum.com/u/makki)\
**Post date:** [August 16, 2006, 6:49am UTC](https://www.ruby-forum.com/t/server-push-with-active-mq/65106/1 "2006-08-16T06:49:18Z")

</div>

I’ve read the postings about Juggernaut with interest, it is an  
interesting approach but in wondering about a solution that wouldn’t  
require flash I did some searching and came across activemq  
([ActiveMQ](http://incubator.apache.org/activemq)).

Their approach for messaging to an AJAX client  
([ActiveMQ](http://incubator.apache.org/activemq/ajax.html))seems to be a  
combination of polling and keeping the HTTP response open. Assuming this  
(polling, keep alive time) is configurable this would seem to be a good  
option for those writing apps that need to cope with a corporate  
firewall, no flash allowed type world.

The server side connection ruby/rails → activemq could be done with the  
stomp ruby client ([ActiveMQ](http://incubator.apache.org/activemq/ajax.html))

Can anyone cast some light onto the possibility, ease of which etc it  
would be possible to integrate the activemg provided javascript library  
with a rails app.

I think it would be very cool to have a robust solution allowing rails  
apps to have their clients subscribe to a messaging channel, especially  
for building collaborative applications where you want your client to  
know about changes/event as they happen (or as quickly as possible).

Activemq would seem to have a good approach plus it provides a backbone  
for integration with other systems.

---

<div class="post-metadata">

**Author:** ![makki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@makki](https://www.ruby-forum.com/u/makki)\
**Post date:** [August 16, 2006, 5:38pm UTC](https://www.ruby-forum.com/t/server-push-with-active-mq/65106/2 "2006-08-16T17:38:52Z")

</div>

Take a look at this:

[http://dev.tirsen.com/trac/activemessaging](http://dev.tirsen.com/trac/activemessaging)

It seems pretty easy to implement.

Jarod R.  
McAfee Forums Administrator  
Tier II Technical Supervisor  
McAfee, Inc

---

<div class="post-metadata">

**Author:** ![makki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/b4bc9f/32.png) [@makki](https://www.ruby-forum.com/u/makki)\
**Post date:** [August 16, 2006, 11:52pm UTC](https://www.ruby-forum.com/t/server-push-with-active-mq/65106/3 "2006-08-16T23:52:26Z")

</div>

Thanks, I had a look

I’m particularly looking for information as to how to arrange javascript  
on the client side to receive messages pushed from the server.

Does activemessaging help with this?

Jarod R. wrote:

> Take a look at this:
> 
> [http://dev.tirsen.com/trac/activemessaging](http://dev.tirsen.com/trac/activemessaging)
> 
> It seems pretty easy to implement.
> 
> Jarod R.  
> McAfee Forums Administrator  
> Tier II Technical Supervisor  
> McAfee, Inc
