|
|
TutorialsJini ExampleJxta Example Web Services RelatedJxtaJini Web Services For More InfoFrom P2P to Web Services and Grids: Peers in a Client/Server WorldIan J. Taylor, 2004 Publisher: Springer ISBN: 1-85233-869-5 |
Configuring the Peer using the JXTA ConfiguratorA JXTA Peer can operate as a client, a server and a Rendezvous (JXTA’s lookup mechanism) at the same time and therefore all JXTA Peers are run in exactly the same way. When a JXTA Peer is started it launches a JXTA Configurator application which allows you to configure and bootstrap the Peer. Using the Configurator, you can specify which port the Peer listens on, where any Rendezvous Peers are, whether this Peer will be operating as a Rendezvous and also which username and password you will be using to access the JXTA network. Peers are set up using the JXTA Configurator. There are 4 screens to configure. Screen one:
The Peer Name can be set to what ever you want to. If you are behind a firewall, then you need to specify your proxy server here also (there is no need in this tutorial). SETTING:
The Advanced Settings screen is used to set parameters about the environment in which the peer is running within:
SETTINGS: Ø TCP Setting: leave this to the default value. You are only running one peer on your machine so the setting is fine as it is. Ø
HTTP Settings: leave as it is. We all have a
connection to the internet so the JXTA web site can be contacted. There is no
reason therefore to change this setting. The Rendezvous/Relay screen is used to specify the peer’s rendezvous connections (if any):
The Rendezvous/Router settings panel enables you to specify rendezvous and HTTP relay settings. By default, the JXTA peer does not act as a rendezvous node nor a relay, but is configured to use a relay peer. Peer to act as a Rendezvous. HTTP relaying is not required here since we are not connected behind a firewall. Finally, the last screen allows you to enter your user name and password. Enter a user name and password (you set this the first time the JXTA configurator is run so you can choose anything). Back to Trail |