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!

MQ client and MQ server

Status
Not open for further replies.

bath

Technical User
Nov 16, 2004
11
BE
hello,
please could you help me on this?

I installed MQseries server on a computer and MQseries client on another computer.
i execute a sample program which put messages in the default queue and get messages from that queue.
i executed this program in the server machine.
all works fine.
i will like to run this from the client machine.
Is any configuartion i have to do in order to connect
to my server?
can i create only QueueManager on the server machine?
thanks
roland
 
You will need to set the MQSERVER vaiable on the client machine.

It is something like:

MQSERVER=Qmgr/TCP/clinet channel name

This is from memory so please recheck the format. The other alternative would be to set up a Client Channel table on the client.

Remeber to use AMQSxxxC for client function (where 'xxx' is GET or PUT)

Hope this help. Read the MQ Clients manual for the format of MQSERVER.
 
thanks Kevinf2349,
I set the following on the client machine
MQSERVER=SYSTEM.DEF.SVRCONN/TCP/MY_SERVER_IP_ADRESS/1414

and I got the following error message:
"
connecting to queue manager QM_ws_test
with no client connection information specified
MQCONNX ended with reason code 2059"

any help would be greatly appreciated.

Many thanks
Roland
 
Hmmmmmm I don't think that you need to specify the port number on the MQSERVER do you?

Have you defined the CLNTCONN on the Server queue manager? It may help to post the definitions for the SVRCONN and CLNTCONN.

The server isn't a z/OS queue manager is it?
 
thanks again. please this is my server settings.
server:
- the queue manager:
QM_ws_test
- queues:
default
postcard
clq_default_ws_test
and some system queues...
-chanel:
S_ws_test
TO_QM_ws_test
System.def.svrconn...
-Client connection:
System.def.clntconn

on the server machine the program i wrote that connect to the Queue manager QM_ws_test put somme messages and get these messages works fine.

in the other machine i installed the client.
i define the environment variable
MQSERVER=SYSTEM.DEF.SVRCONN/TCP/server_IP_adress/port

then on the client machine when i run
amqscnxc QM_ws_test
i got an error MQCONNx ended with reason 2059 with no client information specified.

My questions are:

-what is client information?
-how do i set them on the server
-after the client installation i did not configure
anything.
- what are the configuration on the server and the
client?.

thanks you for your help.
roland



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top