7 Replies Latest reply on Oct 30, 2012 6:57 PM by Clebert Suconic

    Duplicate message detected but identifier is unique

    Chris Baird Newbie

      I am testing using HornetQ 2.2.14.  My set-up uses a primary and backup and multicast address discovery for my producer and consumer.  To send a message to the Q, I have the following


      private Session session;

      private MessageProducer producer;


      // redacted code


      public synchronized void sendMessage(String message) throws JMSException {

           String dupid = UUID.randomUUID().toString();

           log.debug("Sending message with dupid [" + dupid + "]");

           TextMessage textMessage = session.createTextMessage(message);

           textMessage.setStringProperty(Message.HDR_DUPLICATE_DETECTION_ID.toString(), dupid);




      In my HornetQ logs I get many errors indicating "Duplicate message detected" and the log message includes the _HQ_DUPL_ID.  I can look up this identifier and find it only exists once in my log files.


      Has anyone else experienced this?  Am I missing something about how to use this feature (a configuration setting I've omitted)?


      Thanks for any help