powered by Jive Software

Let Server Assign Resource

In my Smack XMPPConnection, when I log in, I would like the server to assign a resource for me. I don’t want to supply my own or use the default value of “Smack”. Is there a way to do this in Smack? My server definitely supports it and it’s in the spec http://xmpp.org/rfcs/rfc6120.html#bind-servergen

thanks,

Dan

I don’t think it’s possible. I’ve tried it, too, once and ended up living with fix resources or generate random UUIDs on the client.

I have not tested this, but, although it’s not documented, it appears that if you specify ‘null’ as resource, the one gernated by the server is used.

Indeed, that works. thanks

Too easy… thanks.