Running the Soccer Results sample

The Soccer Results sample includes two small applications to run from the command line:

The SoccerResults and SoccerGame applications are installed as part of the WebSphere Message Brokers run time:

where install_dir is the directory in which WebSphere Message Brokers is installed.

Start SoccerResults, the subscriber application, before you start any instances of SoccerGame, the publisher application. If you start the SoccerGame application first, the SoccerResults application might miss some results publications.

To run the sample:

  1. Start the SoccerResults application:
    1. On the command line, change to the directory that contains the SoccerResults application.
    2. Enter the following command, where WBRK61_DEFAULT_QUEUE_MANAGER is the name of the broker's queue manager in the Default Configuration:

      soccerResults WBRK61_DEFAULT_QUEUE_MANAGER

      The SoccerResults application displays a message indicating that it has registered a subscription and started successfully. WebSphere Message Brokers is case-sensitive so you must type the queue manager's name exactly as it was created.

  2. Start the SoccerGame application:
    1. At a new command prompt, change to the directory that contains the SoccerGame application.
    2. Enter the following command, where WBRK61_DEFAULT_QUEUE_MANAGER is the name of the broker's queue manager in the Default Configuration, Team1 is the name of one team, and Team2 is the name of the other team:

      soccerGame Team1 Team2 WBRK61_DEFAULT_QUEUE_MANAGER

      Team names can only contain characters "_", 0-9, a-z, and A-Z. Use the "_" character to represent a space in the name of the team. For example:

      soccerGame Hudford_Harriers Drafton_Dynamos WBRK61_DEFAULT_QUEUE_MANAGER

Things to try

When you have run the Soccer Results sample, experiment with the different capabilities of publish/subscribe messaging:

Back to sample home