6.5. Programming with MQSeries automation classes for ActiveX

In the following section we see how the MQSeries Automation Classes for ActiveX can be used to connect and manipulate queue manager objects. The examples shown in this section are written in Visual Basic. Please refer to the MQSeries book Using the Component Object Model Interface, SC34-5387, for more detailed information.

6.5.1. Connecting to the queue manager

MQSeries Automation Classes for ActiveX follow the same structure as AMI. You first have to create a session object in order to connect to the queue manager. To create an instance of the MQSession class, we use the New keyword as follows:

Set SessionObject = New MQSession

Once the session object is created, a connection ...

Get MQSeries Programming Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.