Home

 

Sample programs

 

Table 3 shows the techniques demonstrated by the sample programs supplied with WebSphere MQ Publish/Subscribe on AIX, HP-UX, Linux, Solaris, and Windows.

Table 3. Sample programs for AIX, HP-UX, Linux, Solaris, and Windows
Technique C source Executable MQSC script
Results service amqsresa.c amqsres -
Match simulator amqsgama.c amqsgam -
Administration application amqspsda.c amqspsd -
Routing exit amqspsra.c - -
Create definitions for sample application - - amqsresa.tst
Create stream on another broker - - amqsgama.tst
Create administration app. reply queue - - amqspsda.tst
Create SYSTEM.BROKER.MODEL.STREAM - - amqsfmda.tst

Table 4 shows the techniques demonstrated by the sample programs supplied with WebSphere MQ Publish/Subscribe on iSeries.

Table 4. Sample programs for iSeries
Technique C source Executable MQSC script
Results service AMQSRESA AMQSRESA -
Match simulator AMQSGAMA AMQSGAMA -
Administration application AMQSPSDA AMQSPSDA -
Routing exit AMQSPSRA - -
Create definitions for sample application - - AMQSRESA
Create stream on another broker - - AMQSGAMA
Create administration app. reply queue - - AMQSPSDA
Create SYSTEM.BROKER.MODEL.STREAM - - AMQSFMDA

We can find the samples in the following directories (libraries for iSeries).

AIX

source files and MQSC scripts

/usr/mqm/samp/pubsub

amqspsda.*

/usr/mqm/samp/pubsub/admin

executables

/usr/mqm/samp/bin

HP-UX, Linux, and Solaris

source files and MQSC scripts

/opt/mqm/samp/pubsub

amqspsda.*

/opt/mqm/samp/pubsub/admin

executables

/opt/mqm/samp/bin

iSeries

source files

QMQMSAMP\QCSRC

MQSC scripts

QMQMSAMP\QMQSC

executables

QMQM

Windows

source files and MQSC scripts

<drive:directory>\WebSphere MQ\TOOLS\C\SAMPLES\PUBSUB

amqspsda.*

<drive:directory>\WebSphere MQ\TOOLS\C\SAMPLES\PUBSUB\admin

executables

<drive:directory>\WebSphere MQ\TOOLS\C\SAMPLES\BIN

The sample programs are described in the following sections:

You must start the queue manager before running the MQSC scripts. In addition, before running the executables, start the broker (see Controlling the broker).

Instructions for compiling the samples can be found in the WebSphere MQ Application Programming Guide.



 

Home