[jdev] iq:private routing in j2

Jacek Konieczny jajcus at bnet.pl
Sun Jun 6 08:54:34 CDT 2004


On Sat, Jun 05, 2004 at 12:51:16PM -0400, Stephen Pendleton wrote:
> Out of interest, why was this distinction (need for a full JID) made between
> IQ stanzas and message stanzas in XMPP-IM?

Message stanzas are used to pass some information to a user. If user is
not available on one session the information should go to another. And
it is generally addresses to the user, not to the specific session
(resource), so resource should not be needed in the destination address.

IQ stanzas are used to request an action on users client or account to
be performed by machine. Request for one session or client usually would
make no sense when performed on other client. And IQ response sent to
other client than the one which requested the action makes even less
sense. So bare JIDs (without resource) are of no use in IQ stanzas to 
a client, so it seems a good idea to use them to address user's account
on the server.

Greets,
        Jacek



More information about the JDev mailing list