celery/kombu — pull request #161 by osamu0329nakamura (2012-09-21 15:36:09+00:00)
Title: Fixes examples/simple_task_queue

Hi

I'm starting learning AMQP, and try to use kombu as client library.
However I'm confused in this example because it is not work when I change routing key.

In this example, client actually send message to **AMQP default exchange** that has no name.
So it works well only if a queue name and it's routing key is same.

It seems to send named exchange because client declare exchange before publishing, but actual behavior is not. this confuse me.
So I fixed producer send message to correct exchange (i.e named exchange).

If you intend to send to default exchange in this example, it doesn't need to declare named exchange.

In beginner's point of view, declared exchange is preferred than default exchange.
I don't know whether another transport has same concept as AMQP default exchange.