This content has been marked as final. Show 3 replies
"UnAck" messages are messages sent to consumers but the broker hasn't received acknowledgement for them and can also contain messages produced in a transaction which has not completed.1 person found this helpful
Av u tried consuming your messages in a transaction?1 person found this helpful
When publishing your messages, try setting the expiration time also.
Thanks you both for the answer. I just figure it out with help of your replies: I was using many threads to consume the messages, but these threads were sharing the same "MessageConsumer" object, what was causing the pending messages. Once I changed to have one MessageConsumer per thread, it worked.
Thanks you both for the help :)