[rabbitmq-discuss] How to get list of declared exchanges and queues in rabbitmq using Java?

ankit2186 ankit2186 at gmail.com
Fri May 9 23:59:44 BST 2014


got answer from stackoverflow,
By default if no expires argument set, false value used, so you have to pass
it via argument json-formated argument. The shell command should looks like
this:

$ rabbitmqadmin declare queue name=FOOdurable=true
arguments='{"exclusive":false,"x-message-ttl":86400000}'
queue declared
Make sure you have valid json strnig, unless you'll get formatting issue.
Also, wrap json string in single quotes or double quotes inside will be
removed.

Now looking for command to validate output for x-message-TTL and exclusive? 

=ERROR REPORT==== 9-May-2014::22:49:24 === connection <0.345.0>, channel 1 -
error: {amqp_error,precondition_failed,  "inequivalent arg
'x-message-ttl'for queue 'FOO' in vhost '/': received the value '86400000'
of type 'signedint' but current is none", 'queue.declare'}




--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/How-to-get-list-of-declared-exchanges-and-queues-in-rabbitmq-using-Java-tp35352p35452.html
Sent from the RabbitMQ mailing list archive at Nabble.com.


More information about the rabbitmq-discuss mailing list