How to identify a channel type(sender or receiver) through the event messages sent by the queue manager to queue SYSTEM.CHANNEL.EVENT.QUEUE during a channel stopped or retrying state ?
I’m reading it using class PCFMessage.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The event message contains the channel name but not the type. (See Channel and Bridge Events topic in the Infocenter for specifics.)
My approach for this is that when my monitoring program starts up, I issue a PCF message to display all the channel names and their type and then store this information in a table. (The PCF equivalent of
DIS CHL(*) CHLTYPE.) Then as the channel events arrive, match the channel name to the table entry to retrieve the channel type. It is of course possible to cache any number of the static channel attributes such asCONNAME,MCAUSER, etc. and you can ask for as many as you need in the PCF command.If an event shows up for a channel not in the table, you can always issue a new PCF command to look up the new channel on the fly and then add the attributes to the cache you built when the program started. Hopefully, your QMgr is not so volatile as to define new channels so often that this would be a problem. However, if that were the case you could enable configuration events and then you’d be notified when new channels were defined.