[rabbitmq-discuss] Ruby Gem with Unicorn server

Michael Klishin michael.s.klishin at gmail.com
Wed Jan 18 06:26:46 GMT 2012


Mark:

> Do I need both statements?
> 
> AMQP::Utilities::EventLoopHelper.run
> 
> AMQP::Integration::Rails.start do |connection|
>   AMQP.channel = AMQP::Channel.new(connection)
> end

Yes. You need to both start EventMachine (this part depends on application server, hence the helper) and
connect to the broker, then open channel(s) you need.

MK

http://github.com/michaelklishin
http://twitter.com/michaelklishin



More information about the rabbitmq-discuss mailing list