[rabbitmq-discuss] Error in declaring a queue.

Venky kvredy87 at gmail.com
Wed Jul 3 07:24:13 BST 2013

Hi All,

I am trying to declare a queue in RabbitMQ with php.

Here is my code

function declareQueue($queue_name)
$this->queue = new AMQPQueue($this->channel);   //channel is already 
created. am omitting that code from here

$amqp -> declareQueue("myqueue");

This part of code is giving an error when there is no queue in RabbitMQ. 
the error is:

PHP Fatal error:  Uncaught exception 'AMQPQueueException' with message 
'Server channel error: 404, message: NOT_FOUND - no queue 'myqueue' in 
vhost '/''

Every thing is going fine when the queue is already created in Rabbitmq.

Any help please.

Thanks in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130702/eb89f0a9/attachment.htm>

More information about the rabbitmq-discuss mailing list