powered by Jive Software

Creating a new user and checking for a username clash

I understand that to create an account I do:

AccountManager manager = conn.getAccountManager();

if (manager.supportsAccountCreation())


manager.createAccount(userName, password, attributes);


If I want to detect whether there was a clash (a user already exists with that userName) I can just try and catch an XMPPException.

My question is - can I check whether the user exists already WITHOUT calling createAccount?? Invoke somekind of lookup method?

Regards, Alex.