powered by Jive Software

Create Group - Cliente

Hi guys!!

I want to create a group in client, and save in the openfire.

I don’t create a group on the server.

Look my code:

// create group

Roster roster = connection.getRoster();

RosterGroup rosterGroup = roster.createGroup(“test4”);

// add users

Collection entries = roster.getEntries();

for (RosterEntry rosterEntry : entries) {

rosterGroup.addEntry(rosterEntry);

}