Why we need to implement discovery service and rendezvous service in a peer, what for??? cause i don't know exactly why we must do it?? Do you think a peer (don't care about config mode, can be edge rendezvous) must implement both of it service??? And what about the group, do you think should implement it too??
A peer that configured as edge will be automatically connect to rendezvous around it, right??? Or may be i am wrong?? So how is the correct way so edge peer can connect to Rdv??
A group i've created shoud implement discovery service and Rdv Service??? About the peers that is join a group, do you think one of it should be config as Rendezvous?? or any other idea??
thanks, sorry for bother you guys with my question
a) You always connect to JXTA via a peer group. The basic group is the Net Peer Group (NPG).
b) You don't need to implement a discovery service in your peer, because the NPG will provide this service for you.
c) If you decide to implement your own peer groups, you can 'inherit' from the services available within the NPG by indicating that NPG is the parent of your peer group.
d) If you create your own peer group, then you will have to set-up rendezvous for that peer group, so that other peers willing to join your group know where to connect first. Unless I am wrong, if a peer cannot find a rendezvous for its peer group, it will become one for this peer group automatically.
e) A peer configured as an edge will automatically try to connect to a rendezvous of the peer group it used to connect to JXTA. If this is the NPG, it will try to find a rendezvous peer from the NPG. Now, if you are on a LAN and no one else is running JXTA on this LAN, there is a 99.99999999999999% chance you will never connect to another peer. You need to use seeds (there is a thread about this on the forum) to make initial connections to other peers.
f) In general, you don't want to bother with the implementation of JXTA services and should use those provided by the NPG, unless really really need to implement a version of your own.