Java – why are topic messages not listed?

I want to ask a question about ActiveMQ

I entered the active MQ administration page and found that queued messages would never be listed in the topic, even if the consumer wrote them correctly This means that all published messages will be permanently stored in ActiveMQ

Will these messages cause memory leaks? Is there a solution to make consumption messages out of the list?

Solution

I think you may need to configure your session in the right way connection. Createsession (Boolean. False, session. Auto_acknowledge) if you use transaction or session CLIENT_ Acknowledge, ActiveMQ will only mark your code as queued messages

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>