[jdev] Re: Pubsub notification problem
Emmanuel Nars
nars at lri.fr
Tue Jun 13 04:55:23 CDT 2006
Hello,
Thank you for your help.
This is how I create the node, confirure it and I publish an item.
The user who creates the node is papytest1
<iq type='set' id='6D511895-8157-41B2-9D61-601030BE8207'>
<session xmlns='urn:ietf:params:xml:ns:xmpp-session'/>
</iq>
<iq type="result" id="6D511895-8157-41B2-9D61-601030BE8207"
to="papytest1 at icirca.lri.fr/ibook">
<session xmlns="urn:ietf:params:xml:ns:xmpp-session"/>
</iq>
<iq from='papytest1 at icirca.lri.fr/ibook'
id='32BFB1AC-1981-41B1-8A5C-774AC39974D6' to='pubsub.icirca.lri.fr'
type='set'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<create node='/generic/test5' />
<configure access='open'/>
</pubsub>
</iq>
<presence type="subscribe" to="papytest1 at icirca.lri.fr"
from="pubsub.icirca.lri.fr"/>
<iq type="result" id="32BFB1AC-1981-41B1-8A5C-774AC39974D6"
from="pubsub.icirca.lri.fr" to="papytest1 at icirca.lri.fr/ibook"/>
<iq from='papytest1 at icirca.lri.fr/ibook' id='62E832E6-
E6F5-4E50-91F4-6E9EB339FAF8' to='pubsub.icirca.lri.fr' type='set'>
<pubsub xmlns='http://jabber.org/protocol/pubsub#owner'>
<configure node='/generic/test5' >
<x xmlns='jabber:x:data' type='submit'>
<field var='pubsub#presence_based_delivery'>
<value>
1
</value>
</field>
<field var='pubsub#deliver_payloads'>
<value>
1
</value>
</field>
<field var='pubsub#persist_items'>
<value>
1
</value>
</field>
<field var='pubsub#max_items'>
<value>
10
</value>
</field>
<field var='pubsub#max_payload_size'>
<value>
20000
</value>
</field>
<field var='pubsub#send_item_subscribe'>
<value>
1
</value>
</field>
</x>
</configure>
</pubsub>
</iq>
<iq type="result" id="62E832E6-E6F5-4E50-91F4-6E9EB339FAF8"
from="pubsub.icirca.lri.fr" to="papytest1 at icirca.lri.fr/ibook"/>
<iq from='papytest1 at icirca.lri.fr/ibook' id='B534FDE5-363B-4F48-
AB50-46979BCD50AE' to='pubsub.icirca.lri.fr' type='set'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='/generic/test5' jid='papytest1 at icirca.lri.fr/ibook' >
<item id='7D9704FA-54AD-4D7E-B680-BC406C86CBBC'>
<Test33>
pouetpouet33
</Test33>
</item>
</publish>
</pubsub>
</iq>
<iq type="result" id="B534FDE5-363B-4F48-AB50-46979BCD50AE"
from="pubsub.icirca.lri.fr" to="papytest1 at icirca.lri.fr/ibook"/>
And now this is how the second user (papytest2) subscribes to the
node. However, he never receive the notification of the published item.
<iq from='papytest2 at icirca.lri.fr/ibook'
id='2F1E6BB2-9D1B-4121-9889-80BCADD8C2FD' to='pubsub.icirca.lri.fr'
type='set'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<subscribe node='/generic/test5' jid='papytest2 at icirca.lri.fr/
ibook' />
</pubsub>
</iq>
<iq type="result" id="2F1E6BB2-9D1B-4121-9889-80BCADD8C2FD"
from="pubsub.icirca.lri.fr" to="papytest2 at icirca.lri.fr/ibook">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<entity node="/generic/test5" jid="papytest2 at icirca.lri.fr/ibook"
affiliation="none" subid="GOJEGfPXmkyQMkTt48Q2S10N7V3CTuemllBB8O03"
subscription="subscribed">
<subscribe-options/>
</entity>
</pubsub>
</iq>
<presence type="subscribe" to="papytest2 at icirca.lri.fr"
from="pubsub.icirca.lri.fr"/>
if you want, you can uses the jabber icirca.lri.fr to make your tests.
Regards,
Emmanuel
Le 9 juin 06 à 19:04, Gaston Dombiak a écrit :
Hey Emmanuel,
How is your node configured? What's the subscription configuration of
those
users that are not getting notifications? I just created a node,
subscribed
a few users, published an item (with payload) and subscribers
received the
corresponding notifications. It would also be of help if you can
provide us
the XML stanzas sent by each user to 1) created the node, 2)
configure it,
3) subscribe and 5) publish items. With that information I should be
able to
reproduce what you are seeing.
BTW, there is a specialized Wildfire support forum where you can post
any
Wildfire question. http://www.jivesoftware.org/community/forumindex.jspa
Regards,
-- Gato
"Emmanuel Nars" <nars at lri.fr> wrote in message
news:AC3537FE-EF27-4C45-A8F4-D2C4DC9FE6A3 at lri.fr...
Hi all,
I have a problem to use pubsub feature.
I have no problem to create a pubsub node, to subscribe to it or to
publish an item.
However, users who have subscribed to this node don't reveice
notification of published message.
As exemple, when a publish this message :
<iq from='papytest1 at icirca.lri.fr/ibook' id='BA11D67A-059C-4E24-
B14C-28395AC397C7' to='pubsub.icirca.lri.fr' type='set'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<publish node='/generic/test5' jid='papytest1 at icirca.lri.fr/ibook' >
<item id='F9B4FCA4-2A1F-4855-9967-B2DF243A7535'>
<Test>
foo
</Test>
</item>
</publish>
</pubsub>
</iq>
The wildfire jabber server sends:
<iq type="result" id="BA11D67A-059C-4E24-B14C-28395AC397C7"
from="pubsub.icirca.lri.fr" to="papytest1 at icirca.lri.fr/ibook"/>
But the users who have subscribed to the node /generic/test5 doesn't
recieve any notificaion.
Do you have any idée ?
Thanks,
Emmanuel
More information about the JDev
mailing list