title: Set Message TTL to one hour RabbitMQ
body: <p>How can I set the message TTL ( Not the Queue ) from either the</p>
  
  <ul>
  <li>Exchange ( The exchange sends to multiple queues )</li>
  <li>Message ( when publishing the message )</li>
  <li>Queue ( On the queue itself but again this is the Message TTL and not the Queue TTL )</li>
  </ul>
  
  <p>I'm running RabbitMQ 3.x, Symfony 2.1.x and the <a href="https://github.com/videlalvaro/RabbitMqBundle" rel="noreferrer">RabbitMqBundle</a>.</p>
  
  <p>What I've tried:</p>
  
  <ul>
  <li>Setting the Message TTL when I make the queue itself from the RabbitMQ Admin UI</li>
  </ul>
  
  <p>I set the message properties to <code>'x-message-ttl' =&gt; 3600000</code>. In the RabbitMQ config it looks like this:</p>
  
  <pre><code>{
      "name": "blah_queue",
      "vhost": "foobar",
      "durable": true,
      "auto_delete": false,
      "arguments": {
              'x-message-ttl' =&gt; 3600000
      }
  },
  </code></pre>
  
  <p>this is the error I get:</p>
  
  <pre><code>PRECONDITION_FAILED - inequivalent arg 'x-message-ttl'for queue
  </code></pre>
  
  <p>I tried setting in the config.yml ( symfony / <a href="https://github.com/videlalvaro/RabbitMqBundle" rel="noreferrer">https://github.com/videlalvaro/RabbitMqBundle</a> / README )</p>
  
  <p>this gives a bunch of errors with the AMQP library the bundle uses.</p>
  
  <p>I tried modifying the AMQP library itself to allow the <code>x-message-ttl</code> message properties and I get an exception <code>Error sending data</code>.</p>
  
  <p>Has anyone set the Message TTL using the RabbitMQBundle?</p>
  
  <pre><code>queue_options:    {name: 'blah_queue', arguments: {'x-message-ttl' =&gt; 3600000}}
  </code></pre>