Skip to main content.

Configuration

JXTA Rendez-Vous configuration

JDukeBox uses JXTA for the management and the control of the application. But to permit to all peers disseminated on different networks to discover each others' presence, we must define specific peers, calld "Rendez-Vous Peers".

This section stands for the configuration of a host named textit{azenar} which will play the role of a RDV in our virtual testbed. This host is a regular IPv6 node, for which incoming connections on port TCP 9701 have been allowed (mandatory if the host acts as a JXTA RDV).

When starting the application with no configuration, the JXTA configuration tool is launched. The following figure shows the configuration of this host.

JDukeBox JXTA RDV

Once the application is started, a peer group can be created (File->Create peer group ...) as follows:

JDukeBox Create Group

When a peer joins a group, it waits 20 seconds to discover an existing JXTA RDV. If one is find, it connects, otherwise the peer starts as a RDV for this peer group. The next figure shows the created peer group when only the RDV has joined.

JDukeBox RDV Joined Group

By navigating in the file list, one can add a song in the playlist which will be streamed. To listen to this song, one must press the button "Listen to" to enable the reception of the multicast stream, and launch via the menu an external MP3 player (xmms is used by default) to play the stream, as follows.

JDukeBox song Played

At this state, the peer group is operational, it is just waiting for more peers.