How can i use the feature of collection nodes in the Wildfire.
i am able to create a collection node on wildfire but cann’'t assign a leaf node into it.
I want to create this hierarchy.
/ (root node)
|
|--- /group1 (collection node where "suUser" user is subscribed)
|
|--- /Node1 (leaf node where "User1" user is subscribed)
|
|--- /Node2 (leaf node where "User2" user is subscribed)
Now if anyone publish items on “/User1” node then it is also published to “/group1” node means “suUser” will get the published item.
The Above method that i have used is not working as expected.
if i create the above hierarchy then the pubsub is working fine.
But when i create this hierarchy then i am facing a probelm, and not getting the expected output.
/
|
|
|-------/C1 <----- "SU1" user is subscribed
| |
| |
| |-------/C1/C2 <----- "SU2" user is subscribed
| |
| |
| |-------/C1/C2/L1 <------ "User1" user is subscribed
| | |-------/C2 <----- "SU3" user is subscribed
|
|
|-------/C2/L2 <----- "User2" user is subscribed
Case 1:
When admin publishes an item on the /C1/C2/L1 node then that item is published to all collectionn nodes. I am expecting that only /C1 and /C1/C2 must get this item.
I am using the above methods to subscribe the collection nodes.
When admin publishes an item on the /C1/C2/L1 node then that item is published to all collectionn nodes. I am expecting that only /C1 and /C1/C2 must get this item.
I would like to know the procedure for developing sample application that uses pubsub service using su-smack API. What are the sequence of steps do i need to follow.
I would appriciate if u can create a new thread for this(su-smack) question, because it will be easier to search in future if somebody is heaving same problem.
Because this thread only concentrate about the Pub/Sub collection node.