Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

please help me MQCONN ended with error code 2059

Status
Not open for further replies.

bath

Technical User
Nov 16, 2004
11
BE
Hello,
Please could you give me an answer to the following:
To establish a connexion from MQ client to MQ server
what should I do?
what I have done till now is the following:
On the server machine I created a Queue manager on port (1414)
after that I created a queue.
then I create a channel of type connexion server.

on the client machine I set the environment variable
MQSERVER to my_channel/TCP/my_server_IP_adress(1414)

then I tried to connect from the client by using the program
amqsputc my_queue my_queue_manager.

I got the following error:
MQCONN ended with error code 2059.


when I read the details I saw "remote host unavailable ...the error code return by TCP is 10060'
Note: I can ping my remote Host server from the client computer.
Any help would be greatly appreciated
Many Thanks
Roland

 
Thanks,
when open the MQservices window i saw that my listener is running
Roland
 
Bath,

I think what you need to do is to define a client connection channel and define two environment variables MQCHLLIB and MQCHLTAB. I hope u can now connect to the server easily. and one more thing is that make sure you dont have any firewall set on your client.

DilSe..
 
thanks,
but i have another question "the client connexion channel is wich type?"
roland
 
thanks you but i have another question.
the client connexion channel is which type?
 
This is the description of what i have done till now:
I'm doing all my operations from the explorer websphere MQ:
a)
1) My MQ server is installed on a windows XP machine.
2) The default configuration have been created successfully.

3) I ran the postcard program with success.
4) I executed a small delphi program on my server which
put messages in the default queue using the queue
manager created by the default configuration. It worked
fine.

b)
1)On my second computer running windows 2000 server with
service pack 2 , I installed the MQ client.
(nothing have been add in start->programmes->...
is it normal?....)
2)My intention is to run my program from the client
machine.

3)So on my server machine
a) I created a new Queue Manager (QM_a) using the
wizard
-Manager : QM_a
-I checked the checkbox "default manager"
-then I click on the next button twice
-I checked the checkBox "created canal connexion
server TCP administrattion)
-port number I set (1885)
-then I clicked finish.
The QM_a has been created. then I opened the
MQservices window I have made sure that the listener
is running.
b)I came back to the explorer MQ window
and I created a local queue (queue_1) for the
QM_a
I have used the default values. what I entered is
only the name of the local queue (queue_1)
c) now I when to advanced I created a channel.
-here I have chosen the server connexion
channel. I have given it the name (S_channel)

questions:
-How to I created a client connexion channel?
-I have read that the client connexion channel must
have the same name as the server connexion channel
please how to do this ?

- after doing this, what I have to do is copy the file
AMQCLCHL.TAB from the server machine to the client
machine and then define two environment variables
MQCHLLIB =the path of the AMQCLCHL.TAB file
MQCHLTAB =AMQCLCHL.TAB

then run my client program.

please if I'm wrong give me some precisions

PS: i can ping my two computers
any help will be grealty appreciated.

thanks
Roland

 
Bath,
To create client connection channel, go to your server which is XP machine in your case. Then goto the explorer. In advanced you will see "Client connection" folder. you will create client connection from there. as you did for the server connection channel. Rest of the process is same as you specified.

Best of Luck,
DilSe..
 
Bath,
Make sure you copy AMQCHLTAB after you created the client connection.ok.

All the best,
DilSe..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top