JXTA confusing concepts

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
 
R

Roedy Green

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

I don't know the protocol. but presumably peer1 going away would
broadcast its closing. Further any such protocol should survive an
accidentally disconnect. If peer2 did not get an ack after a
timeout, it would presume peer1 was disconnected.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top