E
E
Egor Petrov2015-11-06 09:04:51
Highload
Egor Petrov, 2015-11-06 09:04:51

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

1 answer(s)
E
Egor Petrov, 2015-11-07
@Hayate

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 question

Ask a Question

731 491 924 answers to any question