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 can MQCONNX indicate a client channel def

Post new topic  Reply to topic
 How can MQCONNX indicate a client channel def « View previous topic :: View next topic » 
Author Message
jasonyzzhang
PostPosted: Thu May 05, 2005 6:37 pm    Post subject: How can MQCONNX indicate a client channel def Reply with quote

Newbie

Joined: 05 May 2005
Posts: 6

Hello ,

I am a newer for MQ and now writing a MQ client AP(MQ client 5.3) in C on AIX5.2.
I define two client connection channels in AMQCLCHL.TAB
...
channel(A) chltype(CLNTCONN) CONNAME('128.1.1.1(14100)') (TCP) QMNAME(GW_IN)
channel(B) chltype(CLNTCONN) CONNAME('128.1.1.1(14100)') TRPTYPE(TCP) QMNAME(GW_IN) SENDEXIT('mqexitc(ChannelExit)') RCVEXIT('mqexitc(ChannelExit)') SENDDATA(00070000)
...

My question are :
1. if I invoke MQCONN, which channel will be used?
2. if I invoke MQCONNX without MQCD. which channel will be picked up?
3. if I want to indicate channel B for MQCONNX, which fields in MQCD should be specified ? or does anyone have an example for this?

thanks very much
jason
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu May 05, 2005 7:23 pm    Post subject: Reply with quote

Grand High Poobah

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

Read the client manual and come back with more focused questions.
The client manual (platform independent) will explain most of your questions...
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Fri May 06, 2005 6:30 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

You might also want to look at the amqscnxc.c sample since it uses MQCONNX.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
jasonyzzhang
PostPosted: Fri May 06, 2005 8:29 pm    Post subject: Reply with quote

Newbie

Joined: 05 May 2005
Posts: 6

Hello,
thanks for your replies.

When I set MQCD below , I got a error with Reason 2277.

The variable of SendUserDataPtr include '0' , some like that in AMQERR01.LOG,


My questions :
1. what is correct set for MQCD.SendUserDataPtr?
2. If I want to use client channel definition table for MQCONNX, the pointer to MQCD must be set 0. Is that necessary?



strncpy(ClientC.ConnectionName, "128.1.1.(14100)", (size_t)MQ_CONN_NAME_LENGTH);
Client.TransportType = MQXPT_TCP;
strncpy(Client.ChannelName, "B", (size_t)MQ_CHANNEL_NAME_LENGTH);
Client.ChannelType=MQCHT_CLNTCONN;
Client.SendExitsDefined=1;
Client.ReceiveExitsDefined=1;
Client.SendExitPtr = "mqexitc(ChannelExit)";
Client.ReceiveExitPtr = "mqexitc(ChannelExit)";
Client.SendUserDataPtr = "00070000";
Client.Version = MQCD_VERSION_4;
Connect_options.ClientConnPtr = &ClientConn_send;
Connect_options.Version = MQCNO_VERSION_2;
MQCONNX()
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 API Support » How can MQCONNX indicate a client channel def
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.