I am new to XMPP.
and I need to get chat history from Openfire with XMPP.
I did Googling but didn't get satisfactory Answer.
Any link or idea will be great help.
You need to install Monitoring service plugin to enable message archiving. You may have to upgrade your openfire service if this plugin is not appearing in your available plugins section in the admin console.
You will need to log into the admin console and go to: Server --> Archiving --> Archiving Settings to enable message archiving.
Hope this helps you. Feel free to comment in case of any queries/doubts.