Group chat

i want to create group chat using smack api.

done with:

joining the room and sending the messages.

Now i want to process the request to join group chat do you have any code?

any help is appriciated.

ConnectionConfiguration config = new ConnectionConfiguration(host, port, domain);

XMPPConnection conn = new XMPPConnection(conf);


conn.login(login, password);

MultiUserChat muc = new MultiUserChat(conn, “room1@” + domain);

muc.join(nick);//or muc.create(nick) if not exist


Thank you for you reply .

I am faceing problem during the creation of chat room.

here is my code:

public void createRoom(XMPPConnection connection){

            muc = new MultiUserChat(connection, "all@conference.praveen-dalas-mac-mini-2.local"); //all is the name of the room i want to create it is not created on server i am trying to create it.

try {

                  // Create the room

muc.create(“int3”); //this is my nickname

muc.sendConfigurationForm(new Form(Form.TYPE_SUBMIT));


catch (XMPPException e) {




when i execute this code my application gets crashed on this line

muc.create(“int3”); //this is my nickname

am i going wrong somewhere?

Try to create muc in standalone xmpp client (like psi). Maybe you have no permissions to do this?

I tried on psi.It creates on temporary room for group chat.

I want to create the same but through programming.