1
votes

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.

4
me too facing the same problem have you found the solution for this ?Priya
not yet.. Installation and set is working.. there are other questions tho.. will update the question for the samepravin
@pravin: During installation of openfire have you used external db or embedded db?Sagar Panda
@SagarPanda : embedded dbpravin
@pravin You can locate the file openfire.script inside the folder embedded-db under your openfire's installation directory. The openfire.script is your database.Sagar Panda

4 Answers

1
votes
  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!

4
votes

If you have installed the monitoring plugin, you can read in its readme file under the configuration paragraph the following content:

Chat archiving is enabled by default. However, only information about who is communicating and at what time is stored unless chat transcript archiving is enabled. To enable chat transcript archiving or group chat archiving, you will need to log into the admin console and go to:

Server --> Archiving --> Archiving Settings

2
votes
  • To enable group chat archiving, you will need to log into the admin console and go to: Server --> Archiving --> Archiving Settings and 'Message Archiving' is enabled for either 'Archive one-to-one chats' and/or 'Archive group chats'.
  • Then the messages get stored in the external database table 'ofMessageArchive'.
  • The history can be further loaded from the database.

This might help you!

1
votes

Answering to #3: Chats are archived in following format in ofmessage archive table:

conversationID | fromJID | fromJIDResource | toJID | toJIDResource | sentDate | body |