Author |
Message
|
sebastia |
Posted: Mon Sep 17, 2007 1:13 am Post subject: how to test the Listener is running from a C program |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
We need to test from a C program that the MQ Listener is running.
( well, we want to know if the product is alive and ready to receive messages, in fact )
Does anybody have a PCF sample that does such a thing ?
Thanks for any pointer ....
Yes, I am reading "SC34-6598-00" |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Sep 17, 2007 1:50 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
If you can establish a client connection in the first place, then the product is alive and ready to receive mesages, in fact.
So, no... there isn't a PCF message for that. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
KeeferG |
Posted: Tue Sep 18, 2007 3:59 am Post subject: |
|
|
 Master
Joined: 15 Oct 2004 Posts: 215 Location: Basingstoke, UK
|
If your listener is an MQ Object in V6 then there are PCF commands to check status.
Please look at the PCF documentation for more information. _________________ Keith Guttridge
-----------------
Using MQ since 1995 |
|
Back to top |
|
 |
Vitor |
Posted: Tue Sep 18, 2007 4:29 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
KeeferG wrote: |
If your listener is an MQ Object in V6 then there are PCF commands to check status. |
Yes, but if the listener is not functional, how do you connect to issue the PCF command? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
KeeferG |
Posted: Tue Sep 18, 2007 4:39 am Post subject: |
|
|
 Master
Joined: 15 Oct 2004 Posts: 215 Location: Basingstoke, UK
|
So what you are saying is that if I choose to use PCF messages then I MUST write a client applicaiton.
I was under the impression that I could write a C application that uses PCF messages to inquire against my locally connected queue manager which requires no listener. The manual clearly states that there are PCF messages for the new listener objects.
Am I missing somehting from the original question here _________________ Keith Guttridge
-----------------
Using MQ since 1995 |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Sep 18, 2007 5:35 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I don't know what anyone else is saying.
I'm saying that, no matter where you want to run your program... if you want to find out if a client connection can be made...
Then the only thing that is worth trying is to make a client connection. It's useless to then issue any PCF commands afterwards. You already know what you want to know!
If, however, you want to find out information about the listener or it's status (which may not indicate that a client connection can be made or not!), then you can use the v6 PCF messages to Inquire Listener or Inquire Listener Status.
And you can issue those PCF commands from either a client or bindings connection. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
KeeferG |
Posted: Tue Sep 18, 2007 5:39 am Post subject: |
|
|
 Master
Joined: 15 Oct 2004 Posts: 215 Location: Basingstoke, UK
|
I'm glad that is settled.
if all we want to do is test that connectivity is there then we can start client connections.
If we have an application connected to a queue manager that wants to check listener objects with PCF they can.
I need a drink _________________ Keith Guttridge
-----------------
Using MQ since 1995 |
|
Back to top |
|
 |
sebastia |
Posted: Tue Sep 25, 2007 12:51 pm Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
I am sorry I started such a miss-understanding.
First of all, let me say the environment in NOT Client-Server.
The environment is Server to Server channels
We have a Queue Manager in a z/OS Host,
then few queue managers in AIX supporting few Message Brokers.
And what we were trying to do
is to write a MQ-API (nor Client) application
that would MQCONN() to all the involved queue managers
and Monitored they capability to receive messages.
We know/use PCF commands to read queue depth(s),
we know/use commands to read channel status,
but (sorry) did not find a PCF command to inquiry
the "listener" status
(and still haven't, but today I am away from office and manuals)
And more than all we would like to have a programmimg sample,
as the ones we have and use ....
are not very well documented, I'd say
So, any help is appreciated : how to test a qmgr is able to receive messages, and we want something more that to send a MQINQ()
...
Thanks to you all, realy !
Sebastian. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Sep 25, 2007 12:54 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
|
Back to top |
|
 |
sebastia |
Posted: Tue Sep 25, 2007 1:36 pm Post subject: |
|
|
 Grand Master
Joined: 07 Oct 2004 Posts: 1003
|
Jeff : I agree absolutelly.
Just didn't have the proper pointers.
Thanks a lot. |
|
Back to top |
|
 |
|