Posted: Tue Aug 13, 2002 10:31 am Post subject: Determing Queue Depth
Apprentice
Joined: 30 May 2002 Posts: 26
Does MQPut or any of the APIs return information about the queue depth? I need to write a program that will stop putting messages into a queue when its above a certain depth and start putting messages into the queue when its below a certain threshold.
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
you have several options
1) there is an MQINQ call to get depth.
2) There are hi and lo depth events which when the queue hits these
thresholds(QUEUE attributes) it will generate event messages in the
event queue you can write(0r modify the support pac) to disable put's
or enable puts. Your application would need to deal with the disabled
put reason code.
3) There are pcf commands to do the same as 1.
I like number to because it pulls the control code from the buisness logic,
you can adjust the hi/lo paramters without code changes. _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum