April 2002
Intermediate to advanced
318 pages
6h 58m
English
We will now explain how the basic MQSeries operation, such as connecting to a queue manager, opening a queue and sending or receiving messages, can be achieved using this API.
To connect to a queue manager we will use the ImqQueueManager class, which encapsulates the MQSeries queue manager object.
The name of the queue manager can be provided in the constructor call, or by using the setName method of the ImqQueueManager class.
ImqQueueManager qmanager; qmanager.setName(name);
or
ImqQueueManager *pmanager = new ImqQueueManager(name);
Note
We will be using the pmanager object throughout the rest of this chapter.
Then the connection can be established using the connect ...
Read now
Unlock full access