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 Java / JMS » Create Client-connection channel for CCDT using PCF cmds.

Post new topic  Reply to topic
 Create Client-connection channel for CCDT using PCF cmds. « View previous topic :: View next topic » 
Author Message
nanotech
PostPosted: Thu Mar 29, 2012 11:29 am    Post subject: Create Client-connection channel for CCDT using PCF cmds. Reply with quote

Novice

Joined: 29 May 2009
Posts: 15

Hi All,

We have a requirement where in we have to create channels and distribute the CCDT to client.I am having trouble creating Client connection channel using PCF commands.

The MQSC command is DEFINE CHANNEL(TEST.CHANNEL) CHLTYPE(CLNTCONN) TRPTYPE(TCP) CONNAME(localhost) QMNAME(MYQMGR) DESCR('Client-connection channel ')

The PCF command that I am using has the following parameters

CMQCFC.MQCMD_CREATE_CHANNEL <-- To create channel
CMQCFC.MQCACH_CHANNEL_NAME <-- For channel Name(TEST.CHANNEL)
CMQCFC.MQIACH_CHANNEL_TYPE <-- for Channel type (CLNCONN)
CMQCFC.MQCACH_CONNECTION_NAME <-- for connection name (localhost)
CMQCFC.MQCACH_DESC <-- for channel description (Client-connection channel )

I am having trouble finding the correct constant for supplying queue manager name.

Can someone please verify that above constants are okay and suggest me which constant should I use for Queue manager name?
CMQCFC.MQCACF_OBJECT_Q_MGR_NAME
--OR --
CMQCFC.MQCHTAB_Q_MGR
--OR--
CMQCFC.MQCACF_PARENT_Q_MGR_NAME

or something else.


Thanks,
RG
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Mar 29, 2012 11:40 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

QMgrName (MQCFST)
Queue-manager name (parameter identifier: MQCA_Q_MGR_NAME).

For channels with a ChannelType of MQCHT_CLNTCONN, this is the name of a queue manager to which a client application can request connection.

For channels of other types, this parameter is not valid. The maximum length of the string is MQ_Q_MGR_NAME_LENGTH.
Back to top
View user's profile Send private message
nanotech
PostPosted: Thu Mar 29, 2012 12:46 pm    Post subject: Create Client-connection channel for CCDT using PCF cmds. Reply with quote

Novice

Joined: 29 May 2009
Posts: 15

Hi Jeff,

Thanks for your reply. I did try this.
CMQC.MQCA_Q_MGR_NAME <-- for Q manager name (MYQMGR)

But when I ran the PCF command. I got the following error with reason code.

4032 (0FC0) (RC4032): MQRCCF_CHANNEL_NOT_FOUND
Explanation
Channel not found.

The channel specified does not exist.

Programmer response
Specify the name of a channel which exists.


But I am supplying the channel name in my command.

Can you please suggest what could be wrong ?
Thanks,
~RG
Back to top
View user's profile Send private message
nanotech
PostPosted: Thu Mar 29, 2012 3:59 pm    Post subject: Reply with quote

Novice

Joined: 29 May 2009
Posts: 15

Jeff,
Never mind . It was my mistake. The solution you provided worked.

Thanks,
~RG
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 » IBM MQ Java / JMS » Create Client-connection channel for CCDT using PCF cmds.
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.