Store OpenFire Cache in DB

Hi All,

Me and my team are new to comm./chat servers.

Is there a way i can store OF cache in a database. The reason is whenever the OF server is restarted we loose the cache, e.g. the room occupants are lost and then we have to rejoin the rooms again.

What we are trying to achieve:

We are developing a mobile app which has a chat module, we are trying to achieve group chat functionality like Skype or Whatsapp.

  1. Persistent chat rooms.

  2. Persistent members in chat rooms.

  3. Auto join chat rooms when a user activates the mobile app.

  4. Receive any offline messages once user activates the mobile app.