[rabbitmq-discuss] consuming a message from exchange does not seem to work on java client (3.2.0 as well as 3.1.5)

Simon MacMullen simon at rabbitmq.com
Mon Nov 4 17:08:58 GMT 2013


Exchanges don't hold messages; queues do.

Have you read the tutorials? If not I recommend them:

http://www.rabbitmq.com/getstarted.html

Cheers, Simon

On 04/11/2013 5:04PM, Murugesan Guruswamy wrote:
> Simon,
>
> But I am actually creating a durable exchange when publishing. Shouldn't it leave the messages in the exchange. Why should the messages be dropped?
>
> I am publishing first to the exchange which is durable.
>
> Thanks,
> Murugesan
> On Nov 4, 2013, at 9:00 AM, Simon MacMullen <simon at rabbitmq.com> wrote:
>
>> On 04/11/2013 4:41PM, Murugesan Guruswamy wrote:
>>> I am using "test.abc" as routing key for both Publish and consume. I had
>>> put the comments below on what values are used for queueName, routingKey
>>> and exchangeName. For basicPublish, I am not using any queue.bind since
>>> this is publishing to exchange.
>>
>> Your code overall looks like it should work.
>>
>> Are you publishing before the consumer app has ever been run (and thus at a point when the queue / binding does not exist?) If so, the message will be dropped.
>>
>> Cheers, Simon
>>
>> --
>> Simon MacMullen
>> RabbitMQ, Pivotal
>
>

-- 
Simon MacMullen
RabbitMQ, Pivotal


More information about the rabbitmq-discuss mailing list