Running the Scribble sample
On Windows and Linux (x86 platform), you can run the Scribble sample applications from the following instructions. On UNIX, you must run the Scribble sample from a shell prompt; for more information, see Running Scribble on UNIX.
Running Scribble on Windows and Linux
To run Scribble:
- Start the ScribblePublisher application:
- Click the Connect button
to open the Connect dialog.
- In the Connect dialog, select the connection type that you want to use:
- Real-time (direct TCP/IP) connection
- WebSphere MQ JMS connection (remote)
When you select a connection type from the list, the fields in the dialog are pre-filled with default values. Edit the default values if necessary, then click OK.
- Start the ScribbleSubscriber application:
By default, the ScribbleSubscriber application connects to the broker using the same connection type as the ScribblePublisher application. However, you can change the connection type if you want: click the Connect button
and select a different connection type.
- Click and drag your mouse pointer in the ScribblePublisher window and watch your drawing appear, inverted, in the ScribbleSubscriber window.
Things to try
When you have run the Scribble sample, experiment with the different capabilities of publish/subscribe messaging:
- Start another instance of the ScribbleSubscriber application. When you create a drawing in the ScribblePublisher window, your drawing appears in both instances of ScribbleSubscriber.
- Start another instance of the ScribblePublisher application. In the Connect dialog box, try selecting a different connection type. The application performs in the same way regardless of how the underlying messages are transported.
- Change the connection type of one of the instances of ScribbleSubscriber. When you create a drawing in a ScribblePublisher window, your drawing appears in all the connected ScribbleSubscriber windows, regardless of which type of connection they use.
Running Scribble on UNIX
To run Scribble on UNIX:
- Log in with the broker's user name.
- Start the ScribblePublisher application:
- At a shell prompt, change to install_dir/sample/scribble, where install_dir is the location in which WebSphere Message Broker is installed.
- Enter the following command:
./ScribblePublisher.sh
- Decide which type of message transport you want the Scribble sample to use between the ScribblePublisher application and the broker. There are three connection types available:
Transport type |
Values to enter |
Real-time JMS |
Click Real-time, then type the Real-time port number, which is 1566 .
|
WebSphere MQ JMS (local queue manager) |
Click WebSphere MQ, then type the name of the broker's queue manager. |
WebSphere MQ JMS (remote queue manager) |
Click WebSphere MQ, then type the name of the broker's queue manager. When you are prompted, type the following values:
- In the Host field, type the name of the computer on which the queue manager is hosted.
- In the Channel field, type the name of the channel, which is SCRIBBLE_SVRCONN.
- In the Port field, type the port number on which the queue manager's listener is listening.
|
- Start the ScribbleSubscriber application:
- At a shell prompt, change to change to install_dir/sample/scribble, where install_dir is the location in which WebSphere Message Broker is installed.
-
Enter the following command:
./ScribbleSubscriber.sh
- When you are prompted, type the name of the broker's queue manager.
- Click and drag your mouse pointer in the ScribblePublisher window and watch your drawing appear, inverted, in the ScribbleSubscriber window.
Things to try
When you have run the Scribble sample, experiment with the different capabilities of publish/subscribe messaging:
- Start another instance of the ScribbleSubscriber application. When you create a drawing in the ScribblePublisher window, your drawing appears in both instances of ScribbleSubscriber.
- Start another instance of the ScribblePublisher application. In the Connect dialog box, try selecting a different connection type. The application performs in the same way regardless of how the underlying messages are transported.
- Change the connection type of one of the instances of ScribbleSubscriber. When you create a drawing in a ScribblePublisher window, your drawing appears in all the connected ScribbleSubscriber windows, regardless of which type of connection they use.
Back to sample home