[rabbitmq-discuss] Message receive error
emile at rabbitmq.com
Wed Jul 6 12:17:46 BST 2011
On 06/07/11 11:54, Alexander Kuleshov wrote:
> 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