powered by Jive Software

Retrieving generated id from Anonymous

according to the online documentation -> http://www.igniterealtime.org/builds/smack/docs/latest/javadoc/index.html?overvi ew-summary.html -> for anonymous login the server is supposed to generate some guid. Does anyone know of a way to get that guid so I can use it to connect to a real user that’s logged on to the box?

Basically, I’m trying to connect a random joe (anonymous) guy to some agent that’s logged in and ready to take chat requests. I figure since the user is just coming to your site and just needs help that he wouldn’t have a username/password setup.

Any help would be appreciated.

Thanks in advance

Incidentally, I was doing just that today.

XMPPConnection conn = new XMPPConnection(“anonymous.jappix.com”);

conn.connect();

conn.loginAnonymously();

String id = conn.getConnectionID();

String user = conn.getUser(); // JID of the anonymous user.

That works perfectly… Thanks!

Please mark the reply as the correct answer so that your question is shown as answered.

in anonymous connections

know if the resource that generates random openfire can use it for other users in the future?

thanks