Author |
Message
|
QueenBee |
Posted: Mon Nov 10, 2003 1:19 pm Post subject: Queue Depth for a .NET App |
|
|
Apprentice
Joined: 28 May 2003 Posts: 43 Location: Grand Rapids, MICHIGAN
|
Hi,
I would like to know how to inquire a particular queue for its Queue Depth parameter from a .NET application?
I have the .NET MQ class and I know it has the capability but I am not sure if there are any examples out there?
Are there? Ideas? Pointers? pls help. I need this info asap.
Thanks,
QueenBee |
|
Back to top |
|
 |
JasonE |
Posted: Tue Nov 11, 2003 2:18 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
Although we ship PCF classes for .net in 5.3 CSD05 they are undocumented and untested. We have actually had someone try to use them and point out a problem which I am currently getting fixed but as it stands today you cant do this. |
|
Back to top |
|
 |
JasonE |
Posted: Tue Nov 11, 2003 7:01 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
Sorry, I was completely stupid in my previous update. If you want to get a queue depth, the Queue object has a queuedepth property (It does an MQINQ under the covers). PCF is another way of doing this, but not the only way... |
|
Back to top |
|
 |
QueenBee |
Posted: Tue Nov 11, 2003 7:26 am Post subject: Code Samples |
|
|
Apprentice
Joined: 28 May 2003 Posts: 43 Location: Grand Rapids, MICHIGAN
|
I have a .NET app that runs in windows 2000 - MQ CSD 4. Is there any sample code out there that can let my app inquire about the Queue Depth of a queue that resides on an AIX box?
I need code samples. Pls help! |
|
Back to top |
|
 |
JasonE |
Posted: Tue Nov 11, 2003 7:50 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
1. Apply fixpack (csd) 05 to get the supported .net environment rather than the old cat2 version
2. Change the sample nmqsget.cs as follows:
a. Change the AccessQueue call to add in "+ MQC.MQOO_INQUIRE"
b. Add before the 'while' : System.Console.WriteLine("Q Depth is currently: "+mqQueue.CurrentDepth);
c. Compile and run as "nmqsget QL QM SYSTEM.DEF.SVRCONN/tcp/a.b.c.d(port)"
where a.b.c.d is your hostname or ipaddr and port is the port (eg. 1414) |
|
Back to top |
|
 |
|