Search code examples
openfire

Chat History and Monitoring Plugin Openfire


I'm new to openfire. I have a chat application running nodejs. I have a separate Chat server with openfire installed.

  1. I wanted to know how chat history for a chat group is handled?
  2. How to progressively load chat history in the client from openfire server? Should I write a custom routine for the same ? Does Monitoring plugin provide any for the same
  3. What is format is which chats are archived ? Is there a way to retrieve them in any given format ?
  4. Are there any APIs that can be used to access the database ?(I doubt it tho)

I have installed Monitoring Plugin for the same. However I'm not able to find any documentation for openfire or monitoring plugin regarding chat history. Any help would be much appreciated.


Solution

    1. Please login to your server

    2. Go to Plugins, find plugin "Monitoring Service" install/enable it if you have not enabled

    3. Now go to the "Server" menu, go to "Archiving" then "Archiving Settings"

    4. Check "Archive one-to-one chats" Check "Archive group chats"

    5. Now click on "Update Setting"

    And then after most important is you need to click on "Rebuild Index" (last button in this setting screen). Then send a messsage from your app, and check your database table "ofMessageArchive"

    You will have magic :)

    It's working for me, let's see it is working for you or not!