Hi.
Here is my problem with MQseries.
Environement :
- a computer named A, with AIX 5.3, MQseries server 6.0 (and clients I think, but how I can be sure ?)
- a computer named B, with Windows 2000 with MQseries Client 5.2
- a computer named C, with AIX 4.2, with MQseries Client 5.2
- a lot of computers named Ni, with Windows XP, with MQseries Client 5.2
Situation :
- B arrived to connect to the QM "MyQM" of A
- C arrived to connect to the QM "MyQM" of A
- Ni arrievd to connect to the QM "MyQM" of A
- On A, I can't connect to the QM "MyQM" on A
Details :
I developped a C program which connects to the local QM "MyQM".
The code is the following :
And I always have this error :
Here are the authorizations of my user on the queue manager :
It seems that the problem is coming from A, maybe in MQseries configuration ?
Here is the server-connection channel that I create :
Finally, I looked in the log file of MQseries in [COLOR=red yellow]/var/mqm/errors/AMQERR01.LOG[/color] and I found the following trace :
Apparently it's trying to look up client channel definition.
So I created a client-connection channel :
But I have always the same error.
I was hoping it will use the [COLOR=red yellow]/var/mqm/qmgrs/MyQM/@ipcc/AMQCLCHL.TAB[/color] but i was wrong.
So I have to create another [COLOR=red yellow]AMQCLCHL.TAB[/color] in [COLOR=red yellow]/var/mqm/[/color], but how generate it properly ?
Thanks for your answer.
Bahan
NB : I'm a real beginner in MQseries ^_^
Here is my problem with MQseries.
Environement :
- a computer named A, with AIX 5.3, MQseries server 6.0 (and clients I think, but how I can be sure ?)
- a computer named B, with Windows 2000 with MQseries Client 5.2
- a computer named C, with AIX 4.2, with MQseries Client 5.2
- a lot of computers named Ni, with Windows XP, with MQseries Client 5.2
Situation :
- B arrived to connect to the QM "MyQM" of A
- C arrived to connect to the QM "MyQM" of A
- Ni arrievd to connect to the QM "MyQM" of A
- On A, I can't connect to the QM "MyQM" on A
Details :
I developped a C program which connects to the local QM "MyQM".
The code is the following :
Code:
char szMqQManager[20] = "MyQM";
MQHCONN lConnexion = 0L;
MQLONG lCodeRetourMQ = 0L;
MQLONG lCodeDiagMQconn = 0L;
/*
* -- ----------------------------------------------
* CONNECTION TO QUEUE MANAGER
* -- ----------------------------------------------
*/
MQCONN(szMqQManager, &lConnexion, &lCodeRetourMQ, &lCodeDiagMQconn);
if(lCodeDiagMQconn != 0L)
{
/* Pb during connection to the queue manager */
logFunction(error_message);
}
else
{
/* Connection ok */
logFunction(ok_message);
}
And I always have this error :
Code:
Completion Code : 2, Reason Code : 2058
Here are the authorizations of my user on the queue manager :
Code:
inq
set
connect
altusr
dlt
chg
dsp
setid
setall
It seems that the problem is coming from A, maybe in MQseries configuration ?
Here is the server-connection channel that I create :
Code:
define channel(MyChannel) chltype(SVRCONN) trptype(TCP) replace
Finally, I looked in the log file of MQseries in [COLOR=red yellow]/var/mqm/errors/AMQERR01.LOG[/color] and I found the following trace :
Code:
06/20/07 11:39:57 - Process(901154.1) User(MyUser) Program(MyBinProgram)
AMQ9518: File '/var/mqm/AMQCLCHL.TAB' not found.
EXPLANATION:
The program requires that the file '/var/mqm/AMQCLCHL.TAB' is present and available.
ACTION:
This may be caused by invalid values for the optional environment variables MQCHLLIB, MQCHLTAB or MQDATA. If these variables are valid or not set then record the name of the file and tell the systems administrator who must ensure that file '/var/mqm/AMQCLCHL.TAB' is available to the program.
----- amqrcdfa.c : 485 --------------------------------------------------------
Apparently it's trying to look up client channel definition.
So I created a client-connection channel :
Code:
DEFINE CHANNEL(MyChannel) CHLTYPE(CLNTCONN) TRPTYPE(TCP) CONNAME(MyIP) QMNAME(MyQM)
But I have always the same error.
I was hoping it will use the [COLOR=red yellow]/var/mqm/qmgrs/MyQM/@ipcc/AMQCLCHL.TAB[/color] but i was wrong.
So I have to create another [COLOR=red yellow]AMQCLCHL.TAB[/color] in [COLOR=red yellow]/var/mqm/[/color], but how generate it properly ?
Thanks for your answer.
Bahan
NB : I'm a real beginner in MQseries ^_^