ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » Queue Depth for a .NET App

Post new topic  Reply to topic
 Queue Depth for a .NET App « View previous topic :: View next topic » 
Author Message
QueenBee
PostPosted: Mon Nov 10, 2003 1:19 pm    Post subject: Queue Depth for a .NET App Reply with quote

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
View user's profile Send private message
JasonE
PostPosted: Tue Nov 11, 2003 2:18 am    Post subject: Reply with quote

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
View user's profile Send private message
JasonE
PostPosted: Tue Nov 11, 2003 7:01 am    Post subject: Reply with quote

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
View user's profile Send private message
QueenBee
PostPosted: Tue Nov 11, 2003 7:26 am    Post subject: Code Samples Reply with quote

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
View user's profile Send private message
JasonE
PostPosted: Tue Nov 11, 2003 7:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » Queue Depth for a .NET App
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.