[jdev] Real world uses of a Resource Name in a JID
dave at cridland.net
Thu May 15 05:18:00 CDT 2008
On Wed May 14 15:22:35 2008, JabberForum wrote:
> What is special about the resource names that we cannot accomplish
> by having a unique bare jid for both users (instead of the
> differing only by resource name)
There's only one user, so only one bare jid. Bare jids refer to
users, full jids refer to clients. Things get muddied when we're not
dealing with users or clients, mind.
> It would be great if someone can give a 'real' example where the
> resource names are useful compared to unique bare jids....
But that's the thing - users already do have unique bare jids. Full
jids allow a client instance to also be addressible, so both users,
servers, and clients are all fully and individually addressible.
For real examples of where this is useful, consider requesting data
from a restricted service. You need the chatroom to send the data
back to the same client, but you also need it to identify it's you.
The simplest method for doing both is to allow the user identifier
(bare jid) to be derivable from the client identifier (full jid), and
every full jid is securely bound to a bare jid.
Dave Cridland - mailto:dave at cridland.net - xmpp:dwd at jabber.org
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade
More information about the JDev