I am trying to implement a multiuser chat environment in my IM project but
when I try to create a room for multiuser calling create() method from
client side , gives an error showing "no response from server". Though I
have already added MUCModule to my xmppserver object.
Please help me to overcome this problem and if I missed out any
configuration of server settings please let me know.
Server api:Vysper
Client Api:Smack
here is my server code
public static void main(String[] args) throws Exception {
String keystorePath;
String keystorePassword;
keystorePath = "src/s2s/bogus_mina_tls.cert";
keystorePassword = "boguspw";
XMPPServer server = new XMPPServer("server.net
");//localServer.getDomain());
Entity localUser = EntityImpl.parseUnchecked("[email protected]");
StorageProviderRegistry providerRegistry = new
MemoryStorageProviderRegistry();
final AccountManagement accountManagement = (AccountManagement)
providerRegistry
.retrieve(AccountManagement.class);
if (!accountManagement.verifyAccountExists(localUser)) {
accountManagement.addUser(localUser, "password");
}
// S2S endpoint
server.addEndpoint(new S2SEndpoint());
// C2S endpoint
server.addEndpoint(new TCPEndpoint());
server.setStorageProviderRegistry(providerRegistry);
server.setTLSCertificateInfo(new File(keystorePath),
keystorePassword);
server.start();
server.addModule(new SoftwareVersionModule());
server.addModule(new EntityTimeModule());
server.addModule(new VcardTempModule());
server.addModule(new XmppPingModule());
server.addModule(new PrivateDataModule());
server.addModule(new AdhocCommandsModule());
server.addModule(new InBandRegistrationModule());
server.addModule(new MUCModule());
ServerRuntimeContext serverRuntimeContext =
server.getServerRuntimeContext();
Thread.sleep(2000);
}