setJMSExpiration() uses a JMS-provider-specific value. For ActiveMQ, that's the time of expiration in millis.
Try this instead:
messageReference.getMessage().setExpiration(System.currentTimeMillis() +
60*60*1000);
--
View this message in context:
http://activemq.2283324.n4.nabble.com/remove-DLQ-message-tp4675686p4676067.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
