Some JXTA conceptual Questions
Hi, I have some clarification in these topics.
1) Do I need to have a RDV peer for communication(MultiCast) inside a LAN ?
2) Here is a scenario:
a) I need to have multiple groups inside a LAN .
b) A user connects to JXTA network and search for existing group. He can join or create his own group.
Since the task is to multicast msg inside each group , Do I need to centralize the group with a RDV peer or just join a group and multicast msg.
and, in order to keep track of all the groups I have the following code:
PeerGroup newGroup = netPeerGroup.newGroup(myID,adv,"Drawing Pictures","");
PeerGroup newGroup2 = netPeerGroup.newGroup(myID2,adv,"Drawing Shapes","");
//and to get all the peer groups:
DiscoveryService discovery = netPeerGroup.getDiscoveryService();
Enumeration enumeration =null;
enumeration = discovery.getLocalAdvertisements(discovery.GROUP, null, null );
System.out.println("Peer group ID retrieved is : " + ((PeerGroupAdv) enumeration.nextElement()).getPeerGroupID() );
But, I need have all the PeerGroup Objects under NetPeerGroup. How Can I get all the PeerGroup Objects so that i can identify them with name and object ?
May be i need those PeerGroups to make seperate Multicast socket server for each group.
please, teach me some solutions. thanks.