I want to ask a question about the topics of activemq.
I entered admin page of activemq and found that messages enqueued will never be dequeued in topics even if consumers had been written correctly. That means the all published messages will be permanently kept in ActiveMQ.
Will these message lead to a memory leak? Is there a solution that could make consumed messages dequeued?
I think you may need to config your session with the right way. connection.createSession(Boolean.FALSE, Session.AUTO_ACKNOWLEDGE) ActiveMQ will only marked the message to Dequeued by your code if you use a transaction or Session.CLIENT_ACKNOWLEDGE
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With