About the RendezvousService from Edge Peers...

Joan Esteve <[email protected]> Mon, 26 Sep 2005 10:11:06 +0200
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
Greetings, jxta users!

In the next line I'll copy/paste the "RdvConfig" node from the current 
platformConfig file used by one of my edge peers (i will call him 
"edge1") from my application (that uses net.jxta.ext.config to set the 
properties from the node):

<Svc>
        <MCID>urn:jxta:uuid-DEADBEEFDEAFBABAFEEDBABE0000000605</MCID>
        <Parm type="jxta:RdvConfig" config="client" 
xmlns:jxta="http://jxta.org">
            <seeds>
                <addr>tcp://147.xxx.xxx.xxx:9701</addr>
                <addr>http://147.xxx.xxx.xxx:9700</addr>
                <addr>tcp://147.yyy.yyy.yyy:9701</addr>
                <addr>http://147.yyy.yyyyyy::9700</addr>
            </seeds>
        </Parm>
    </Svc>

As you can see, i've added two rendezvous URI's in the Configurator 
(twice using both tcp and http transports). These two machines 
("rendez1" and "rendez2") are launched with jxta shells configured to 
act as rendezvous nodes.

When i start my application with the node "edge1", it connects correctly 
to the jxta network. (The boolean function isConnectedToRendezvous() 
from the Rendezvous Service returns "true").

But the function getConnectedRendezvous() from the same service returns 
only ONE peer ID (one of the two shells launched and rendezvous). What 
is more, the function getDisconnectedRendezvous() returns an empty 
enumeration. How can it be possible? 2 machines added; 1 returned as 
connected, 0 returned as disconnected

Does it means that, altough i've added two machines to be rendezvous 
uri's for "edge1", this peer can only establish a connection with ONLY 
ONE rendezvous node? There is any way to force the peer "edge1" to 
establish connection with "rendez1" and "rendez2" at the same time?

Thanks in advance!

Joan Esteve
LCFIB - Barcelona (SPAIN)