Problems with AMQP and rabbitmq

33 views
Skip to first unread message

sol

unread,
Sep 21, 2011, 5:37:44 AM9/21/11
to Daemon Kit
Hi, having the following setup under rvm ruby-1.9.2:

amq-client (0.8.3)
amq-protocol (0.8.1)
amqp (0.8.0)
bundler (1.0.18)
daemon-kit (0.1.8.1)
eventmachine (0.12.10)

I generated a client for rabbitmq with -i amqp, containing:

amq = ::MQ.new
amq.queue('test').subscribe do |msg|
DaemonKit.logger.debug "Received message: #{msg.inspect}"
end

I'm getting errors from rapidmq:

=ERROR REPORT==== 21-Sep-2011::11:24:57 ===
connection <0.16515.0> (running), channel 1 - error:
{amqp_error,command_invalid,"second 'channel.open'
seen",'channel.open'}

if I change the snippet to:

amq = AMQP::Channel.new
amq.queue('test', :durable => true).subscribe do |msg|
DaemonKit.logger.debug "Received message: #{msg.inspect}"
end

Then it works

has there been any changes in the amqp gem that are not already in
daemon-kit?



sol

unread,
Sep 22, 2011, 5:28:45 AM9/22/11
to Daemon Kit
hm somehow with the above, 2 channels are open in rabbitmq
Reply all
Reply to author
Forward
0 new messages