Running Applications From the Command Entry Screen

The following command submits the tibemsMsgProducer sample program (SXJ3MP) to batch with multiple user threads enabled:
SBMJOB CMD(CALL PGM(<samplib>/SXJ3MP)
    PARM('-server' 'tcp://url-id1:7222'
    '-topic' TEST1 'Hello World'))
    ALWMLTTHD(*YES)

where samplib is either the library where the product was restored using RSTLICPGM, or is a development library you have used for compiling your versions of the sample programs.

The parameters passed to program SXJ3MP include the following name-value pairs:
  • -server tcp://url-id1:7222
  • -topic TEST1

The first pair specifies the TCP address of the TIBCO EMS server. The second pair specifies the topic to which messages are published. The final parameter specifies the message text published on the topic.

SXJ3MP is compiled from sample source file tibemsMsgProducer.c. For details, see TIBCO EMS Messaging Samples