Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Openfire serverside subscription to a node

$
0
0

hi

 

i am writing a plugin for openfire. in this plugin i want to create node and subscribe clients to this node. i am successful in creating the nodes but i am unable to subscribe client to it. i am using this code to subscibe client but didnt worked for me.

Node retreived = pubsub.getNode(nodeId); NodeSubscription subscription = new NodeSubscription(retreived, new JID("dinga@exalanche"), new JID("dinga@exalanche"), State.subscribed, "sdfsdfdsds"); retreived.addSubscription(subscription); retreived.approveSubscription(subscription, true); retreived.saveToDB();


Viewing all articles
Browse latest Browse all 10742

Trending Articles