title: ActiveMQ 5.5: Not able to get the DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY value
body: <p>I am not able to get the reason of exception from the message that is in the DLQ.
  These are the steps i have followed:-</p>
  
  <ol>
  <li><p>Message is sent to a 'Sample' Queue.</p></li>
  <li><p>The Message Listener throws a Runtime Exception in the onMessage Function.(throw new RuntimeException("Exception Reason Test");)</p></li>
  <li><p>The message goes to the DLQ.</p></li>
  <li><p>I am trying to access the Exception reason via two approaches(i pass the DLQ Name and the JMS Message ID in both):-</p>
  
  <ul>
  <li>Spring JMSTemplate browseSelected function</li>
  </ul></li>
  </ol>
  
  <p>(ActiveMQMessage)message.getStringProperty(ActiveMQMessage.DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY);</p>
  
  <ul>
  <li>JMX QueueViewMBean browse function via the composite data map</li>
  </ul>
  
  <p>Map datamap =  (Map)dataMap.get("StringProperties");</p>
  
  <p>datamap.containsKey(ActiveMQMessage.DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY);</p>
  
  <p>In both cases i am getting a null value for the property DLQ_DELIVERY_FAILURE_CAUSE_PROPERTY.</p>
  
  <p>Please help.
  Thanks </p>