About the IBM MQ Automation Classes for ActiveX Starter samples
This appendix describes the IBM MQ Automation Classes for ActiveX Starter samples, and explains how to use them.
IBM MQ for Windows provides the following Visual Basic sample programs:- MQAXTRIV.VBP
- MQAXBSRV.VBP
- MQAXDLST.VBP
- MQAXCLSS.VBP
These samples run on Visual Basic 4 or Visual Basic 5. You will find them in the directory ...\tools\mqax\samples\vb.
In the same directory you will also find samples for Microsoft Excel and html. These are:- MQAX.XLS
- MQAXTRIV.XLS
- MQAXTRIV.HTM
What is demonstrated in the samples
The samples demonstrate how to use IBM MQ Automation Classes for ActiveX to:- Connect to a queue manager
- Access a queue
- Put a message on a queue
- Get a message from a queue
The central part of the Visual Basic sample is shown on the following pages.
Preparing to run the samples and
Running the ActiveX Starter samples
Before you run the IBM MQ Automation Classes for ActiveX Starter samples check that we have a default queue manager running and that we have created the required queue definitions. For details of creating and running a queue manager and creating a queue, refer to Administer. The sample uses the queue SYSTEM.DEFAULT.LOCAL.QUEUE which should be defined on any normally set up IBM MQ server.
The different ways of using data bags are as shown in the following list:
- Connect to a queue manager
- Access a queue
- Put a message on a queue
- Get a message from a queue
For information on the MQAX starter samples for Microsoft Basic Version 4 or later, see Running the MQAXTRIV sample
For information on a sample that allow you to browse properties and methods of queue managers and queue objects, see Starting the MQAXCLSS sample
For information on the MQAXDLST sample, The MQAXDLST sample
For information on running the MQAX starter sample for Microsoft Excel 95 or later, MQAXTRIV.XLS, see Running the MQAXTRIV.XLS sample.
For information on running the Bank demonstration with MQAX.XLS, see Running the Bank demonstration with MQAX.XLS
For information on starter sample using an ActiveX compatible WWW browser, see Starter sample using an ActiveX compatible WWW browser