title: Adding participants to XMPP chat rooms
body: <p>I want to implement Group Chat in my application, for that purpose i am using MUC chat rooms to implement the same.</p>
  
  <p>Here I want to add a list of members( i have the JID's) to the room.
  I want to add them internally to all the members in the list. How can i add them without inviting them.</p>
  
  <p>And after adding the members i want to implement a functionality that whenever a user of the chat room messages or chat, it should be delivered to all the other users.</p>
  
  <p>The main problem is how to add members to the chat room</p>
  
  <p>code:</p>
  
  <pre><code>private void createRoom(){
  
          MultiUserChat privateRoom = new MultiUserChat(connection, "testGroup@conference.abc.com");
          try {
              privateRoom.join("gaurav","123456");
              privateRoom.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));
              System.out.println("Room Created!!!");
  
              Message message = new Message("testGroup@conference.abc.com", Message.Type.normal);
              message.setBody("Happy User");
  
              privateRoom.sendMessage(message);
  
  
  
          } catch (XMPPException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
          }
  
      }
  </code></pre>