Author |
Message
|
matt_newnham |
Posted: Tue Oct 19, 2004 1:15 am Post subject: List remote queues with PCF in C# |
|
|
Newbie
Joined: 19 Oct 2004 Posts: 9
|
Hi I am new to Websphere MQ. I have been using the IBM MQ classes and the PCF classes to list all of the Queues under a local queue manager. However I want to list queues of a queue manager on a remote machine. Does anyone know how I can do this? Can I use the PCFMessageAgent class? I am working in C#. |
|
Back to top |
|
 |
kevinf2349 |
Posted: Tue Oct 19, 2004 6:32 am Post subject: |
|
|
 Grand Master
Joined: 28 Feb 2003 Posts: 1311 Location: USA
|
Connect as a client to the machine in question....or there is a pretty good support pack that will do the remote admin. (MO71) |
|
Back to top |
|
 |
kirani |
Posted: Wed Oct 20, 2004 10:45 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
I dont think there is PCFMessageAgent class in .NET
Atleast I did not find it in Using .NET manual. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
JasonE |
Posted: Fri Oct 22, 2004 2:21 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
|
Back to top |
|
 |
matt_newnham |
Posted: Tue Oct 26, 2004 12:18 am Post subject: |
|
|
Newbie
Joined: 19 Oct 2004 Posts: 9
|
Thanks for all your advice. I have used the PCF Message Agent class and have been succesful in listing all of the queues under my local queue managers by passing the name of my local queue manager.
eg.
PCFMessageAgent myAgent = new PCFMessageAgent("QM_NAME")
I have also been successful in connecting to a remote queue manager using the .net MQ classes and setting the MQEnvironment variables.
However I cannot obtain a list of the queues under this remote queue manager by connecting to it as a client. Nor can I use the PCF Message Agent class to connect to a remote queue manager. If I supply the name of my remote queue manager I get an 2058 exception, similar to if i try to connect to a remote queue manager using the MQ classes without setting the MQEnvironment variables. There is no MQEnvironment class in the PCF namspace, as far as i can see.
Any thoughts?? |
|
Back to top |
|
 |
|