Why the messages remain in the QUEUE after the subscriber consume the message

Options
Sbelag
Sbelag Member Posts: 7
edited June 3 in Tips and Tricks #1

Hello,
I have a Java Apache Camel consumer that consumes and acknowledge messages from a topic a/b/c/t1 .
I have a Queue subscribed to the same topic (a/b/c/>) .
when I push a message (persistent or non-persistent) to the topic , I m able to consume the message in my java application but the message remain in the queue . What I m missing in my queue configuration to make the message deleted after it is acknowledged by the consumer ? (I don't want to use a TTL)
the service is behaving like if it is only browsing the queue. .
Thank you