Good people of StackOverflow, please help. I\'ve set up an ejabberd server on my ubuntu machine, added virtual host, set {access, register, [{allow, all}]}. and registered
To register a new user using smack library after logging in through admin or some other account.
/** * To Register a New Client On Jabber Server */
public void registerUser()
{
AccountManager manager = connection.getAccountManager();
try {
manager.createAccount("Romain Guy","halejag");//username & paswd
} catch (XMPPException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}