Answer the question
In order to leave comments, you need to log in
How to enable persistent messages in ActiveMQ?
Actually, how to enable the mode in which messages will not disappear after the broker is restarted?
This option does not work: activemq.apache.org/kaha-persistence.html The
broker simply stops starting altogether, and if you change kahaPersistenceAdapter to what is suggested in the error message, the broker starts, but after it is restarted, the messages still disappear.
Answer the question
In order to leave comments, you need to log in
It turns out that in addition to the broker settings, it is also necessary to indicate in the message header that it needs to be saved to the hard disk.$amq_headers['persistent'] = "true";
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question