Re: How to set "use only configured seed rendezvous" attribute using ext.config.Configurator?
James Todd <[email protected]> Thu, 01 Sep 2005 16:18:27 -0700
| Newsgroups | gmane.comp.java.jxta.user |
|---|---|
| Message-ID | <[email protected]> |
For "edges," the prototypical JXTA instance, I recommend using Profile.EDGE.
MyJXTA (http://myjxta2.jxta.org) uses the edge profile, eg:
http://download.java.net/lg3d/jxta/jnlp/myjxta-beta.jnlp
Here is the profile, noting that it can (and will) be shorter then this:
<jxta>
<peer descriptor="edge"/>
<network>
<rendezVous discovery="false"/>
<relays discovery="false"/>
</network>
<transport>
<tcp>
<address>
<multicast>udp://224.0.1.85:1234</multicast>
</address>
<publicAddress exclusive="false"/>
</tcp>
<http>
<publicAddress exclusive="false"/>
<proxy enabled="false"/>
</http>
</transport>
<service>
<relay>
<outgoing enabled="true"/>
</relay>
</service>
<configuration>
<optimizer class="net.jxta.ext.config.optimizers.EdgeOptimizer"/>
</configuration>
Now, to generate your desired config, consider augmenting only the
following:
<network>
<rendezVous bootstrap="" discovery="true">
<address>http://x.x.x.x:9700</address>
</rendezVous>
You can change (or remove) the discovery attribute. MyJXTA opts to "not"
discover
rdvs w/in the NPG.
Back to the bare minimum configuration for an edge. One individual has
reported the following
works:
<jxta>
<peer descriptor='edge'/>
<transport>
<tcp>
<address>
<multicast enabled='true'>udp://224.0.1.85:1234</multicast>
</address>
<publicAddress exclusive='false'/>
</tcp>
<http/>
</transport>
</jxta>
note:
*no* network data
multicast is on by default
hth,
- james
--
James Todd :: blogs.sun.com/gonzo | weblogs.java.net/blog/gonzo
MyJXTA :: use it - learn it - do it
Java == platform independence
XML == application independence
JXTA == network independence
Secure End-to-End Computing
Joan Esteve wrote:
> Hi,
>
> When i configure my jxta nodes i need to activatethe option "[ ] Use
> only configured seed rendezvous" that appears in the default jxta
> configurator. I need to change this setting from the platform config:
>
> <Parm type="jxta:RdvConfig" config="client" xmlns:jxta="http://jxta.org">
> <seeds useOnlySeeds="true">
> <addr>
> http://x.x.x.x:9700
> </addr>
> <addr seeding="true">
> http://rdv.jxtahosts.net/cgi-bin/rendezvous.cgi?2
> </addr>
> </seeds>
> </Parm>
>
> I want to change this config with this another one:
>
> <Parm type="jxta:RdvConfig" config="client" xmlns:jxta="http://jxta.org">
> <seeds useOnlySeeds="true">
> <addr>
> http://x.x.x.x:9700
> </addr>
> <addr seeding="*false*">
> </addr>
> </seeds>
> </Parm>
>
> What is the best way to do this using the API packaged in
> net.jxta.ext.config?
>
> Thank you very much
>
> Joan
>