|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How can MQCONNX indicate a client channel def |
« View previous topic :: View next topic » |
Author |
Message
|
jasonyzzhang |
Posted: Thu May 05, 2005 6:37 pm Post subject: How can MQCONNX indicate a client channel def |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu May 05, 2005 7:23 pm Post subject: |
|
|
 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 |
|
 |
bower5932 |
Posted: Fri May 06, 2005 6:30 am Post subject: |
|
|
 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 |
|
 |
jasonyzzhang |
Posted: Fri May 06, 2005 8:29 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|