Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Do I Get List Of Channels ?

Status
Not open for further replies.

alephs

Programmer
Jan 12, 2004
1
GB
Dear Friends,

I am trying to get a list of all channels known to the local queue manager. The idea is to display their name and status. But I am not too sure how to go about this. I need a solution/hint based around C code.

Thanks for all your help.

regards, Alephs.
 
Inquiring about queue attributes using MQINQ
Attributes are the properties that define the characteristics of an MQSeries object, including queues. They affect the way the object is handled by the queue manager. Some attributes are set when the object is initially defined, and can only be changed via MQSeries commands.

An application can inquire about all the queue attributes using the MQINQ call. The MQI also provides the MQSET call (outlined later) in order to allow applications to change some of the queue attributes. The MQINQ call uses an array of selectors to identify those attributes whose current values are to be inquired about. There is a selector for each of the attributes an application can work with. Before an application can use MQINQ it must first have been connected to the queue manager using MQCONN and have opened a queue for inquiry using MQOPEN.

Input to the MQINQ call is:

A connection handle returned from a previous MQCONN call
The queue object handle returned a previous MQOPEN call for the desired queue
The number of selectors in the attribute selector array
An array of attribute selectors whose values are set via the MQSeries named constants. Each selector represents an attribute whose current value is to be inquired about. Selectors can be specified in any order in the array
The number of integer type attributes to be inquired about. Specify zero if no integer type attributes are specified in the selectors array
The address of an integer array with enough elements to hold the output integer attribute values
The length of the character attributes buffer. This must be at least the sum of the lengths required to hold each character attribute string being inquired about. Specify zero if no character type attributes are inquired about
The address of the character buffer to hold the returned attribute values
Output from MQINQ is:

A completion code
A reason code
A set of integer attribute values copied into the specified integer array
The buffer in which character attribute values have been copied
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top