title: How to persist users(MultiUserChat) and chat history in Openfire (Ver 4.0.3) using SMACK API (4.2.0 Beta1)
body: <p>I have successfully created a multiuserchat group, but the user goes offline the user is removed from the group, and i want to have the history of messages to save for the user the next time he logs in. I found some approaches from previous and deduced as follows</p>
  
  <ol>
  <li><p><em>There are several old answers out there but none of them is based on new SMACK API 4.1.5+</em></p></li>
  <li><p>using "Stream Management", but i have no idea what and how to do it, How it helps to solve my problem.</p></li>
  <li><p>Using a PUBSUB for getting messages and delivering to user and showing the pseudo-list of users</p></li>
  </ol>
  
  <p>I want to know the best and effective approach or any libs which help to achieve my result. I am a newbie to XMPP and have 2+ year experience in java</p>
  
  <p>NOTE: I am looking for a <strong>whatsapp group chat implementation</strong> to kick/invite/providing_permissions to the user and history of messages for notifications/when he is offline.</p>
  
  <p>I am searching for this from long time , Any Help is really appreciated.
  Thanks in advance.</p>