radioAe6rt

A simple JXTA rendezvous and relay for a private net peergroup and subgroups

leave a comment »

Here is a quickly-hacked and very simple boilerplate for a JXTA rendezvous and relay that serves a private net.

Note that in configureJXTA() you must supply valid relay and rendezvous seeding URIs for “rdvSeedingURI” and “relaySeedingURI”. Those URIs must return the moral equivalent of something like this:

$ wget -O seed.out 'http://www.example.com/cgi-bin/jxtaseeds.cgi?q=rdv'

$ cat seed.out
tcp://192.168.0.4:9701
tcp://192.168.0.8:9701

You will also need the make.sh and run.sh scripts, as well as the log4j.properties file. The log config file must be in the runtime directory. Per the log4j.properties file, log output goes to ./rdvlog.txt.

Naturally, you’ll want to change the various URN-type IDs to values of your own choosing, but as long as you don’t share an IP address space with anyone else running this rendezvous, it shouldn’t really matter.

The NetPeerGroupFactory constructor may change in the future, so keep your eye on that.

[tags]JXTA[/tags]

Written by radioae6rt

November 13, 2006 at 5:49 pm

Posted in Internet

Leave a Reply