[rabbitmq-discuss] DQOTD: Is publishing to an undeclared exchange ok?

Matthew Sackman matthew at rabbitmq.com
Sat Nov 27 10:05:17 GMT 2010


On Sat, Nov 27, 2010 at 01:10:10AM -0800, Pieter de Zwart wrote:
> My Dumb Question Of The Day (registered) is: What is the expected behavior
> when publishing to an exchange that has not been previously declared? It
> seems that if I do that using the C client, the message disappears into the
> void without so much as a peep.

It's a channel-level error to publish a message to a non existant
exchange. You should get back a 404 exit reason with the channel being
closed.

Matthew


More information about the rabbitmq-discuss mailing list