title: Set Expiration per message with SpringJMS
body: <p>I use MQ in my project via SpringJMS, as a broker I use ActiveMQ.
  I need to set <strong>expiration</strong> message-based, so I tried to used <code>message.setJMSExpiration</code> but without success. All messages coming to ActiveMQ have <em>expiration=0</em>.</p>
  
  <p>Does anyone has success with setting Expiration per message using Spring? </p>
  
  <p>For configuring JmsTemplate I used default value <code>explicitQosEnabled = false;</code> so I expected to keep expiration from my Message props. But as I see in ActiveMQSession.class this message properties will be override:</p>
  
  <pre><code>        long expiration = 0L;
          if (!producer.getDisableMessageTimestamp()) {
              long timeStamp = System.currentTimeMillis();
              message.setJMSTimestamp(timeStamp);
              if (timeToLive &gt; 0) {
                  expiration = timeToLive + timeStamp;
              }
          }
          message.setJMSExpiration(expiration);  
          //me: timeToLive coming from default values of Producer/JmsTemplate...
  </code></pre>
  
  <p>What I am doing wrong ? or it is just impossible with this tools.</p>