Generating JXTA_HOME directories for multiple peers for testing purposes

"Igor Mekterovic" <[email protected]> Wed, 10 May 2006 11:29:21 +0200
Newsgroups gmane.comp.java.jxta.user
Message-ID <[email protected]>
Hi all,

I would like to run hundreds and/or thousands of peers on local machine(and
other machines in LAN).

AFAIK, to have multiple peers running on the same computer every peer
instance has to have it's own JXTA_HOME directory and:

- peers must have different names (not sure about this)
- peers must run on different ports


I've been reading source code of http://bench.jxta.org/ and I can see that
they only set peer name and not the port. Furthermore, in readme.txt it is
said:
-------
Notes on running the Load Tests
..
This will launch three peers in separate subdirs - p0, p1 and p2. You
should name the three peers p0, p1 and p2 in the configuration dialogs
for the three peers that will popup one after the other.
...
-------

I don't want to set those ports by hand in the popups for hundreds of peers.

Finnaly the question:
- Is there a way to generate JXTA_HOME directories for multiple peers
programmatically? Is there a way to generate "empty" JXTA_HOME dirs with
different names and ports?

- And, while we're on the subject, does anybody have any experience with
running multiple peers on the same PC, e.g. how many peers were you able to
run on what confuguration?

Thanks in advance,

Igor