[rabbitmq-discuss] Unable to store messages into queue
David Wragg
david at rabbitmq.com
Tue Dec 14 09:48:15 GMT 2010
Hi,
Dinh <pcdinh at gmail.com> writes:
> [...]
> channel.queue_declare(queue='feeds', durable=True)
> [...]
> channel.basic_publish(exchange='feeds', routing_key='feeds',
> [...]
The exchange name should be the empty string '', as in your earlier code
and the example at <http://www.rabbitmq.com/tutorial-one-python.html>.
Only the routing key should contain the queue name.
See
<http://rajith.2rlabs.com/2007/10/13/amqp-in-10-mins-part4-standard-exchange-types-and-supporting-common-messaging-use-cases/>
for an explanation of AMQP exchange types, and how the nameless exchange
fits in.
David
--
David Wragg
Staff Engineer, RabbitMQ
SpringSource, a division of VMware
More information about the rabbitmq-discuss
mailing list