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 IndexIBM MQ Installation/Configuration SupportCCDT file active QM connection details

Post new topicReply to topic
CCDT file active QM connection details View previous topic :: View next topic
Author Message
yshakraj
PostPosted: Wed Dec 18, 2019 3:44 am Post subject: CCDT file active QM connection details Reply with quote

Acolyte

Joined: 14 Sep 2011
Posts: 73

Hello All ,

I have been working on the MUltiInstance MQ set up and shared the CCDT Fiel to the client application team .
They are able to connect as well .however we have a requirement to find out which QM is active now , and need to log the host and port number in the client application logs .

I got this - "Which namelist is it that you wish to inquire details of? I don't know of a namelist that lists the multi-instance MQ Queue Manager's addresses and ports. You are getting reason code 2067 (MQRC_SELECTOR_ERROR) because MQCA_NAMELIST_NAME is not a queue manager attribute, it is a namelist attribute. You would need to open the namelist for MQOO_INQUIRE. However, the real question is "Which Namelist?"

from another forum - does anyone can help me identify the MQ object that really holds the connection details .

ps- https://stackoverflow.com/questions/57609994/mq-get-multi-instance-mq-manager-connection-list

Thanks in advance ,
yshak
Back to top
View user's profile Send private message
HubertKleinmanns
PostPosted: Wed Dec 18, 2019 4:53 am Post subject: Reply with quote

Shaman

Joined: 24 Feb 2004
Posts: 732
Location: Germany

You could inquire the channel status of your SVRCONN channel and look for the attribute CONNAME.
_________________
Regards
Hubert
Back to top
View user's profile Send private message Visit poster's website
fjb_saper
PostPosted: Wed Dec 18, 2019 5:49 am Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20164
Location: LI,NY

HubertKleinmanns wrote:
You could inquire the channel status of your SVRCONN channel and look for the attribute CONNAME.

The conname attribute really only gives you the address you're connecting from. What the OP is after would be the LOCLADDR field that shows the address and port that was connected to, ie the qmgr's IP and the listener port.
Hope this helps
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Wed Dec 18, 2019 6:38 am Post subject: Re: CCDT file active QM connection details Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 8559
Location: US: west coast, almost. Otherwise, enroute.

yshakraj wrote:
... we have a requirement to find out which QM is active now , and need to log the host and port number in the client application logs.

What do you mean by "active?"

By "active now" do you mean the name of the qmgr the application has successfully connected to? Or, do you mean the names of the qmgrs that are defined in the CCDT, and which are currently running?
_________________
There are two types of people in this world:
1) Those that can extrapolate from incomplete data
Back to top
View user's profile Send private message
yshakraj
PostPosted: Wed Dec 18, 2019 7:20 am Post subject: Reply with quote

Acolyte

Joined: 14 Sep 2011
Posts: 73

Thanks for your response .

By "active now" - I meant the current connection from client application to the Queue manager .

basically I am after the connection details like server name and port .

In-case of multi-instance QM - we have two servers one will be active and other one as stand by , so when client application connects to primary if it fails it connect to standby one .So there is a possibility of two connections .
We need to know which connection is active now from application side .

Client application use PCF Agent , MQ queuemanager object etc .(not sure this makes sense here...)

Thanks again ,
yshakraj
Back to top
View user's profile Send private message
yshakraj
PostPosted: Wed Dec 18, 2019 7:24 am Post subject: Reply with quote

Acolyte

Joined: 14 Sep 2011
Posts: 73

Code:

ie the qmgr's IP and the listener port



Thats correct
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Dec 18, 2019 9:39 am Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 8559
Location: US: west coast, almost. Otherwise, enroute.

Why the requirement? What purpose?
_________________
There are two types of people in this world:
1) Those that can extrapolate from incomplete data
Back to top
View user's profile Send private message
hughson
PostPosted: Wed Dec 18, 2019 2:02 pm Post subject: Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1301
Location: Bay of Plenty, New Zealand

You could make use of MQCNO_CD_FOR_OUTPUT_ONLY. This fills in the MQCD structure with the choice made from the CCDT. It was provided so that applications making two connections could guarantee that they both went to the same place, even if a CCDT was in use. However, it also serves to tell the application where the connection was made to.

Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ Installation/Configuration SupportCCDT file active QM connection details
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.