0 Replies Latest reply on May 30, 2014 11:00 AM by stoneshu

    the message ttl don't work

    stoneshu

      based on the proton-j example, I set ttl = 100000L in the AMQP Header,  but the message expired  Immediately.

       

      why?  The main code as follows:

      -----------------------------------------------------------------------------------------------

               Header header = new Header();

               header.setTtl(UnsignedInteger.valueOf(100000L));

               AmqpValue value = new AmqpValue("I am an amqp message");

               List<Section> sections = new ArrayList<Section>();

               sections.add(header);

               sections.add(value);

               Message message = new Message(sections);

              

               sender.send(message);

       

      ---------------------------------------------------------------------------------------------------

       

      best regard

      thanks