This issue has been talked in the forum a lot of times but I've seen different answers and I would like to know if something is possible.
I have two different networks with two rendezvous and in every network there is one node. I'm not using multicast.
Node A ---- Rendezvous 1 ---- Rendezvous 2 ---- Node B
If I look for the node B with
getRemoteAdvertisements(null, DiscoveryService.PEER, "Name", "Node B", 1, this);
I get a DiscoveryEvent.
I think Rendezvous 1 is giving me the answer because if I shutdown Node B and Rendezvous 2, I still get a DiscoveryEvent. But if I shutdown Rendezvous 1 I don't get any more events.
I suppose the Peer Advertisements of Node B are stored in the Rendezvous 2 and then repropagated to Rendezvous 1 (I don't make any publish or remotePublish of the peer advertisement)
The DiscoveryService API says:
"It is important to note that what is shared with the rendezvous peer is the index and expiration of the advertisement, not the advertisement"
I understand that the Rendezvous knows where is the advertisement, but it does not store the advertisement.
So I don't understand why if I shutdown Node B I still get responses?
And, should it be possible to get that only Node B answer to that requests?
Thanks in advanced