changing edge to RDV if there are no peer groups
I have written a small peer application which can either create a peer group or join a peer group. I have been trying to make it so that it starts as an edge peer and if the specified peer group does not exist, then it becomes the RVD peer and creates a peer group.
How do I use myDiscoveryService.getRemoteAdvertisements() to check to see if there are ANY remote advertisements of which mach the name I am searching for ?. When I call this it just seems to hang when I do not have a peer group already set up to join.
I want to be able to turn my edge peer into a RDV peer if there are no peer groups to connect to.
Is this done using DiscoveryService? If not, then what is the best way to do this?
Any help would be appreciated.