[JDEV] storing presence extensions

Peter Millard me at pgmillard.com
Fri Apr 25 12:20:59 CDT 2003


Mathias Waag wrote:
> i am using an extension in the presence element (type is subscribe) to
> subscribe to different presence informations like location, client info,
> principal status, ....
> <presence to='test1 at localhost' type='subscribe'>
> <x xmlns='paa:x:subscription'>
> <ns type='add'>paa:x:location</ns>
> </x>
> </presence>
> if test1 is online he will receive the presence element including the
> extension. if he is not online, the presence element will be stored in xdb.
> but wihtout the paa:x:subscription extension. is there a way to tell the
> server to store the presence element including the extensions?

There is no way to tell the server this via protocol.... In the IETF drafts, it
says the server must store "the request" and send it when the user becomes
available. It does NOT specify what "the request" is.

IMO, Servers should be saving the entire packet and sending it, but I'm 99% sure
that this is not the way jabberd-1.4's JSM does this (it just stores a "bit" in
the roster item).

pgm.




More information about the JDev mailing list