Verifying From Qshell

You can verify the TIBCO EMS Client for IBM i installation from a Qshell environment by running the provided C sample programs.

Prerequisites

Ensure that the TIBCO EMS server is running on port 7222 on server url-id1, where url-id1 is the hostname where your TIBCO EMS server is running.

Procedure

  1. Start the Qshell environment:
    QSH
  2. Ensure that the QIBM_MULTI_THREADED environment variable has a value of Y.
    For example: export QIBM_MULTI_THREADED=Y
  3. Change to the samples directory:
    cd EMI_HOME/samples/c
  4. Run the tibemsMsgConsumer sample program (SXJ3MC) in one of the following ways:
    • SXJ3MC -server tcp://url-id1:7222 -topic TEST1
    • tibemsMsgConsumer -server tcp://url-id1:7222 -topic TEST1
  5. From another Qshell environment, run the tibemsMsgProducer sample program (SXJ3MP) with a message parameter in one of the following ways:
    • SXJ3MP -server tcp://url-id1:7222 -topic TEST1 'Hello World'
    • tibemsMsgProducer -server tcp://url-id1:7222 -topic TEST1 'Hello World'
    The message is displayed on the first Qshell command entry screen.
  6. Optional: If you have another EMS client on Windows, run the tibemsMsgProducer sample program:
    First change directory: cd <directory-where-Windows-client-binary-resides>
    Then run: tibemsMsgProducer -server tcp://url-id1:7222 -topic TEST1 'From Windows'
    The message is displayed on the first Qshell command entry screen.
  7. Press PF3 to end the two Qshell environments.