I
i_lk
while studying JXTA i found some very confusing concepts...
1) if peer1 is created and then publish it's advertisement.. then
peer1 is disconnected from the internet... meanwhile peer2 comes online
and gets the advertisement from the rendezvous peer.. so it joins the
group instead of creating that peer group.. but in actual there is no
such peer group existing... how can i overcome this problem
2) if in a peer group... several peers have joined .. how can i get the
list of all the peers joining that group... i have modified the example
in programmer's guide . i have just used the service of that specific
peer group to register the app for listening the events
peergroupservice.addDiscoveryListener(this);
and then used
peergroupservice.getRemoteAdvertisements(null,DiscoveryService.PEER,null,null,5);
to look for the advertisement
now how a peer responds to the discovery message?
thanks in advance
1) if peer1 is created and then publish it's advertisement.. then
peer1 is disconnected from the internet... meanwhile peer2 comes online
and gets the advertisement from the rendezvous peer.. so it joins the
group instead of creating that peer group.. but in actual there is no
such peer group existing... how can i overcome this problem
2) if in a peer group... several peers have joined .. how can i get the
list of all the peers joining that group... i have modified the example
in programmer's guide . i have just used the service of that specific
peer group to register the app for listening the events
peergroupservice.addDiscoveryListener(this);
and then used
peergroupservice.getRemoteAdvertisements(null,DiscoveryService.PEER,null,null,5);
to look for the advertisement
now how a peer responds to the discovery message?
thanks in advance