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
-
Start the Qshell environment:
QSH
-
Ensure that the QIBM_MULTI_THREADED environment variable has a value of
Y.
For example:
export QIBM_MULTI_THREADED=Y
-
Change to the samples directory:
cd
EMI_HOME/samples/c
-
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
-
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.
- 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.
-
Press PF3 to end the two Qshell environments.
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.