I am trying to create queue with same parameters along with x-message-ttl
shell script:
rabbitmqadmin declare queue name="FOO" durable=true auto_delete=false `arguments={"x-message-ttl":86400000}`

[I am not sure how to pass exchange through commandline]

Map<String, Object> args = new HashMap<String, Object>();
args.put("x-message-ttl", new Integer (messageTTL.intValue() *1000));
Ch.queueDeclare(FOO, rabbitDurable, false, rabbitAutoDelete, args);

where messageTTL = 864;
rabbitDurable=true;
rabbitAutoDelete=false

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/How-to-get-list-of-declared-exchanges-and-queues-in-rabbitmq-using-Java-tp35352p35443.html">Re: How to get list of declared exchanges and queues in rabbitmq using Java?</a><br/>
Sent from the <a href="http://rabbitmq.1065348.n5.nabble.com/">RabbitMQ mailing list archive</a> at Nabble.com.<br/>