Not logged in. · Lost password · Register
Forum: agsXMPP RSS
tosse #1
Member since Nov 2009 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: PubSub help needed

i'm trying to get a pubsub example to run, but it doesn't work.

So fare I have the following running:
           PubSubManager pubSubManager = new PubSubManager(locStreamCon.getXmppConnection());

            Jid jidTo = new Jid("pubsub.immp3w1128");
            String node = "/home/immp3w1128/Bot_LocationData;
            Item payload = new Item("id12234");
            payload.Value = "Test Message";

            pubSubManager.CreateNode(jidTo,node, true,new IqCB(CreateNodeResult),null);

            pubSubManager.PublishItem(jidTo, node, payload);

I tried to configure PSI to listen to the new created pubsub node. But this doesn't work. I tried other Clients to, but still no success.

Does anybody know a good tutorial for getting pubsub running?

Thanks for your help.

Alex #2
Member since Feb 2003 · 4367 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
can you please post the xml debug?

  • does the callback CreateNodeResult returns success?
  • try to add a callback for PublishItem as well and see if it returns success.

Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS