[rabbitmq-discuss] Alternate Exchange Configuration Issue

Prashant Yadav PRYD at mach.com
Mon Jan 24 19:33:16 GMT 2011


Hi ,

 

Am experiencing trouble when configuring alternate exchange for my
broker. I am following the docs present in rabbitmq site. The error am
getting is



Caused by: com.rabbitmq.client.ShutdownSignalException: channel error;
reason:
{#method<channel.close>(reply-code=406,reply-text=PRECONDITION_FAILED -
inequivalent arg 'alternate-exchange' for exchange 'exchange' in vhost
'/':  required {longstr,<<97,101>>}, received
undefined,class-id=40,method-id=10),null,""}

                             at
com.rabbitmq.client.impl.ChannelN.processAsync(ChannelN.java:230)

                             at
com.rabbitmq.client.impl.AMQChannel.handleCompleteInboundCommand(AMQChan
nel.java:165)

                             at
com.rabbitmq.client.impl.AMQChannel.handleFrame(AMQChannel.java:110)

                             at
com.rabbitmq.client.impl.AMQConnection$MainLoop.run(AMQConnection.java:4
37)

Caught: com.rabbitmq.client.AlreadyClosedException: clean connection
shutdown; reason: Attempt to use closed channel

 

As you can see in the Stack Trace, am defining alternate exchange and
looks like it does not like it. This is my rfrence from RabbitMQ Site

Map<String, Object> args = new HashMap<String, Object>();

args.put("alternate-exchange", "my-ae");

channel.exchangeDeclare("my-direct", "direct", false, false, args);

channel.exchangeDeclare("my-ae", "fanout");

channel.queueDeclare("routed");

channel.queueBind("routed", "my-direct", "key1");

channel.queueDeclare("unrouted");

channel.queueBind("unrouted", "my-ae", "");

 

Regds

Prashant  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110125/26c6c8ad/attachment-0001.htm>


More information about the rabbitmq-discuss mailing list