0 Replies Latest reply on Mar 3, 2012 11:08 AM by magegu

    duplicate messages preventing not working

    magegu

      hi guys,

       

      i'm sending a message through core the core api

       

                          ClientMessage message = session.createMessage(true);
                          SimpleString myUniqueID = new SimpleString(id);
                          message.putStringProperty(org.hornetq.api.core.Message.HDR_DUPLICATE_DETECTION_ID, myUniqueID);
                          message.getBodyBuffer().writeString(id);
      
                          producer.send(message);
      

       

       

      but the message will is not received by the consumer.

      if i comment out the putStringProperty line its working fine!

       

       

      did i miss anything here?

       

       

       

      thanks!

       

       

       

      btw: the docs are outdated, there is no org.hornetq.api.core.HDR_DUPLICATE_DETECTION_ID and no message.setStringProperty method - should i file a bug request?