Message Lost on Openfire Restart [version 4.3.2]

Thanks for your reply @Hiren1.

  1. [IMPORTANT] We can set the conversation logging time to a higher number (say for an instance 200 seconds), but issue I am facing is that, the messages posted to Openfire (to test this I am posting only one message) are being lost when Openfire is restarted during the conversation logging time. Can you suggest a way out of it?
    I am using “service openfire restart” command on linux, but according to the thread How does the cache behave on server shutdown?, the messages in the queue should have been persisted in the DB, but somehow they are not being persisted, also no significant error logs I can see.

  2. We are creating MUC Service & Chat Rooms from Spring Boot application, for every new service, we need to set default history setting to show entire chat history (we can’t afford to do it manually for every service, that is the reason we need make the configuration changes into Openfire DB directly & restart Openfire since the change do not reflects while its running) as shown below: