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 » IBM MQ API Support » how to test the Listener is running from a C program

Post new topic  Reply to topic
 how to test the Listener is running from a C program « View previous topic :: View next topic » 
Author Message
sebastia
PostPosted: Mon Sep 17, 2007 1:13 am    Post subject: how to test the Listener is running from a C program Reply with quote

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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Mon Sep 17, 2007 1:50 am    Post subject: Reply with quote

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
View user's profile Send private message
KeeferG
PostPosted: Tue Sep 18, 2007 3:59 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Tue Sep 18, 2007 4:29 am    Post subject: Reply with quote

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
View user's profile Send private message
KeeferG
PostPosted: Tue Sep 18, 2007 4:39 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Tue Sep 18, 2007 5:35 am    Post subject: Reply with quote

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
View user's profile Send private message
KeeferG
PostPosted: Tue Sep 18, 2007 5:39 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
sebastia
PostPosted: Tue Sep 25, 2007 12:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Tue Sep 25, 2007 12:54 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You want to implement a prebuilt monitoring solution.

You really don't want to write one yourself.

Really.

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzac.doc/pc12260_.htm
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzac.doc/pc12310_.htm
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
sebastia
PostPosted: Tue Sep 25, 2007 1:36 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » IBM MQ API Support » how to test the Listener is running from a C program
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.