[rabbitmq-discuss] Message receive error

Emile Joubert emile at rabbitmq.com
Wed Jul 6 12:17:46 BST 2011

Hi Alexander,

On 06/07/11 11:54, Alexander Kuleshov wrote:
> Hello,
> I want to write in one queue and get data from another.
> Thank you.

You can only publish to an exchange, not to a queue directly. The
bindings that are present on a broker and the message routing key
determine which queues a message go to. The 4th tutorial on
http://www.rabbitmq.com/getstarted.html has more details about routing.

The queue that you consume from must have been declared previously. If
you replace <<"test2">> with <<"test1">> in your code then the
subscription will succeed.


More information about the rabbitmq-discuss mailing list