Communications/Transactions Guide and Reference

Step 6: Closing the queue and disconnecting

After performing any operation (such as putting or getting messages), you must close the queue. If you did not connect to the queue manager using AbtMQSeriesConnectionSpec, as in Sample Application 1, you must close the queue using the close method.

| result |
 
"Sample App 1: Closing the queue and verifying the call"
(result := aQueue close) isAbtError
        ifTrue: [messageQueue ioAccessor
                 insertString: ('Close error: ', result codesAsString).
                 ^nil].

Closure is unrelated to syncpoint, so you can close a queue before or after a syncpoint.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]