[jdev] Retrieving Items from PubSub

Peter Saint-Andre stpeter at stpeter.im
Wed Sep 17 18:22:43 CDT 2008


vatsarv wrote:
> In the Pubsub, my subscription is configured to receive the
> notifications without the payload. My intention is to receive only the
> notification initially. The complete message with payload is fetched
> ONLY if I need it. 
> 
> The notification received by the subscriber will also get the itemID,
> which is the ID given by the server while publishing. I was expecting
> that the subscriber can use this itemID to retrieve this particular item
> from the pubsub server. But, I dont this it is possible.
> 
> My questions:
> 1) Is it possible to retrieve a particular item from the pubsub server
> by providing its itemID? If yes, I was also expecting an error case
> called 'Item not found'
> 2) If the answer to Q1 is NO, then why is the itemId delivered along
> with the notification?

Yes, this is possible, but I noticed (while publishing the "pubsub 
queueing" proposal) that we don't have an example for this in XEP-0060. 
Please see here for an example:

http://www.xmpp.org/extensions/inbox/pubsub-queueing.html

/psa

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6751 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://www.jabber.org/jdev/attachments/20080917/4496096e/attachment-0002.bin>


More information about the JDev mailing list