I'm using Smack to develop an internal dashboard in Java/Spark that would start a Google Talk conference between a LDAP user group. When I run
MultiUserChat.isServiceEnabled(connection, "[email protected]")
it returns false. I know that via the GMail client, one can start a group conversation. Could this be returning false because of something in my Google Apps domain, or does Google use some other means for group chat in Google Talk?
So as it turns out, GTalk actually does support MUC. With Smack and Java, it's as simple as the following code:
UUID uid = UUID.randomUUID();
String chatRoomName = String.format("private-chat-%1s@%2s", uid, "groupchat.google.com");
MultiUserChat muc = new MultiUserChat(connection, chatRoomName);
muc.join("My username");
From there, it's just a matter of adding users like
muc.invite("[email protected]", "Some reason");