HI.
My program uses handledelivery to get the messages from rabbit.
When a message arrive I store the deliveryTag long value from envelope.getDeliveryTag() method and the message are stored in an arraylist.
In other part of the program I have a listener checking if some message arrive to the arraylist, if arrive then take the message and the deliveryTag.
When the message was procesed I use channel.basicAck with the deliveryTag to tell to rabbit ack the message, But the message is still in unacked list and when I close th program and startup again receive the same message, ie, rabbit never receive my acknowledge.
But If i change the program and uses channel.BasicAck inside the handleDelivery it works!
Any idea? Thanks!.