Step 1: Instantiating the connection
To use MQSeries programming services, your program must connect to a queue manager. To establish that connection, you must decide how you are going to connect to the queue manager. There are several ways to connect to the queue manager. In Sample Application 1, an instance of AbtMQqm is created using the queue's name:
"Sample App 1: creating an instance of the message queue"
(aQueueManager := AbtMQqm new) name: 'CSQ1'.
In Sample Application 2, AbtMQSeriesConnectionSpec is instantiated to establish the connection:
"Sample App 2: defining the connection spec"
anMQConnectionSpec := AbtMQSeriesConnectionSpec new.
"Initialize the connection"
anMQConnectionSpec queueManagerName: 'CSQ1';
server: false;
requestQueueName: 'MYUSERID.QUEUE1'.
Set the server: option to false if you plan to write messages to this queue; set the option to true if you plan to read messages from this queue.
Last modified date: 01/29/2015