To run the Pager samples, use the supplied graphical applications to receive messages. The following sections describe how to use each of the graphical applications:
Use the Text Messenger application to send messages to the Pager application. The Text Messenger application communicates indirectly with the Pager application by putting messages on WebSphere MQ queues. If you close the Pager application and continue sending messages to it, the messages are held on the queues until you start the Pager application again. When you start the Pager application again, it receives the queued messages. This example demonstrates asynchronous messaging.
To send a message to the Pager application:
To clear the message input box without sending a message and without closing the Text Messenger application, click Clear.
To close the Text Messenger application without sending any messages, click Cancel.
Use the Surf Report Publisher to manage your subscriptions to surf reports that you can receive on the Pager application. The Surf Report Publisher application communicates indirectly with the Pager application by publishing messages to WebSphere MQ queues. If you close the Pager application and the Surf Report Publisher continues publishing messages to which the Pager application is subscribed, the messages are held on the queues until you start the Pager application again. When you start the Pager application again, it receives the queued messages to which it is subscribed. This example demonstrates asynchronous messaging.
However, if you close the Surf Report Publisher application, your subscriptions are deleted and no new surf reports are sent to the Pager application.
The surf report publisher application consists of two windows:
To subscribe to surf reports:
To stop publishing messages, return to the Surf Report Publisher window and click Stop. To clear the screen, click Clear.
To close the Surf Report Publisher application, close the Surf Report Publisher window. All your subscriptions are deleted when you close the Surf Report Publisher window.
The Pager application can receive messages from both the Text Messenger application and the Surf Report Publisher application. The Pager application does not communicate directly with the other applications but indirectly by receiving messages that the other applications put on WebSphere MQ queues. So that you can close the Pager application, send messages to it from one of the other applications, and then start the Pager application again. While the Pager application is not running, the messages are held on the queues; when you start the Pager application again, it receives the queued messages. This example demonstrates asynchronous messaging.
However, if you close the Surf Report Publisher application, your subscriptions are deleted and no new surf reports are sent to the Pager application.
The following diagram shows the controls of the Pager application.
The display of the Pager application consists of the Status area (at the top) and the Display area (below the Status area). The Display area can show either message text, a list of your messages, or the menu. The Status area has four labels:
The pager has four buttons that are used to control the application:
To view your messages:
To access the menu, click the View button. If you are viewing message text, you must click the View button twice: to return to the list of messages, and then to access the menu.
Use the scroll buttons to highlight an option, click the Select button to select it. The following list gives details of the different menu options:
To leave the menu, click the View button.