How to use Smack 4.2 for connecting to ejabberd?
Service name should be your served host names. eg:
config.setServiceName("gtalk.com");
DomainBareJid serviceName = JidCreate.domainBareFrom("example.org");
config.setServiceName(serviceName);
Service name should be your served host names. eg:
config.setServiceName("gtalk.com");
DomainBareJid serviceName = JidCreate.domainBareFrom("example.org");
config.setServiceName(serviceName);