O'Reilly logo

JXTA in a Nutshell by Li Gong, Bernard Traversat, Scott Oaks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

JXTA Application Configuration

The dialog box that we showed in Figure 2-1 should make a little more sense now. That box is called the JXTA configurator tool, and it’s a basic feature of the JXTA platform. All JXTA applications use this tool when they are first configured.

Configuration information is stored by this tool in the local directory. The configuration information also includes a local port number on which the JXTA application will listen. For that reason, you cannot run two instances of the shell (or any other application) on the same machine from the same directory. Instead, you must do the following:

  • Create a new directory in which to hold the configuration information (e.g., /files/JXTA_Demo/Shell.2).

  • Copy the shell.sh or shell.bat script into that directory.

  • cd to that directory.

  • Execute the startup script.

When this shell starts, you will again be presented with the configuration box from Figure 2-1. You’ll need to perform some advanced configuration in order for this second shell to run.

The configurator has four panels:

Basic

The basic panel of the configurator allows you to assign a name to your peer. Any string can be entered (we chose “Test Shell 1”): it can represent a person’s name, a hostname, or any other identifier. The name you enter is not guaranteed to be unique. No centralized naming service is used by the configurator; therefore, two peers may end up with the same name. This is okay, since the peer name is intended to be used only as a hint for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required