Author |
Message
|
fcho |
Posted: Sun Sep 01, 2002 5:30 pm Post subject: Multi Q manager in AIX problem! |
|
|
Apprentice
Joined: 29 May 2002 Posts: 28
|
Hi,
I've create 3 Q manager in AIX box, I've modify the /etc/services as below :
...
MQSeries1 1414/tcp #listener port for MQseries
MQSeries2 1415/tcp #listener port for MQseries
MQSeries3 1416/tcp #listener port for MQseries
, I also modify inetd.conf as below :
MQSeries1 stream tcp nowait mqm /usr/mqm/bin/amqcrsta amqcrsta -m QM_MGR1
MQSeries2 stream tcp nowait mqm /usr/mqm/bin/amqcrsta amqcrsta -m QM_MGR2
MQSeries3 stream tcp nowait mqm /usr/mqm/bin/amqcrsta amqcrsta -m QM_MGR2
and I also restart the services.
The problem now is when I try my program to MQCONN to connect to QM_MGR1, no problem but when I try to connect to QM_MGR2 or QM_MGR3, I got error 2058, any body know why? fyi, I'm using set MQSERVER every time I rerun my program.
Regards,
fcho |
|
Back to top |
|
 |
kirani |
Posted: Sun Sep 01, 2002 5:43 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
fcho wrote: |
MQSeries3 stream tcp nowait mqm /usr/mqm/bin/amqcrsta amqcrsta -m QM_MGR2
|
I think, it should be:
Code: |
MQSeries3 stream tcp nowait mqm /usr/mqm/bin/amqcrsta amqcrsta -m QM_MGR3
|
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
fcho |
Posted: Sun Sep 01, 2002 6:12 pm Post subject: Multi Q manager in AIX problem! |
|
|
Apprentice
Joined: 29 May 2002 Posts: 28
|
Hi,
Thanks for the reply. Yes this was a typing error. After changed as below :
MQSeries3 stream tcp nowait mqm /usr/mqm/bin/amqcrsta amqcrsta -m QM_MGR3
problem still the same, any idea? |
|
Back to top |
|
 |
kirani |
Posted: Sun Sep 01, 2002 6:54 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Is your MQSERVER variable set correctly? It should be in this format: 'ChannelName/Protocol/ConnectionName:PORT'. For example, MQSERVER=SYSTEM.DEF.SVRCONN/TCP/MYSERVER:1415
Please make sure you have typed your queue manager name correctly in the program. Are you running the client application on the same server? Have you linked your application with client libraries? _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
fcho |
Posted: Sun Sep 01, 2002 8:04 pm Post subject: |
|
|
Apprentice
Joined: 29 May 2002 Posts: 28
|
Is your MQSERVER variable set correctly? It should be in this format: 'ChannelName/Protocol/ConnectionName:PORT'. For example, MQSERVER=SYSTEM.DEF.SVRCONN/TCP/MYSERVER:1415
Set accordingly but still same error happen.
Please make sure you have typed your queue manager name correctly in the program. Are you running the client application on the same server? Have you linked your application with client libraries?
Yes, I'm running the client application on same server. I also using the amqscnxc sample program to test but still the same.
Do you think should I need to reboot the AIX box?
Regards,
fcho |
|
Back to top |
|
 |
nimconsult |
Posted: Sun Sep 01, 2002 10:38 pm Post subject: |
|
|
 Master
Joined: 22 May 2002 Posts: 268 Location: NIMCONSULT - Belgium
|
Have you tried connecting in binding mode (ie not in client mode / without the MQSERVER variable)?
Just to make sure it is only a listener problem or a more global problem. _________________ Nicolas Maréchal
Senior Architect - Partner
NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be |
|
Back to top |
|
 |
fcho |
Posted: Mon Sep 02, 2002 12:00 am Post subject: |
|
|
Apprentice
Joined: 29 May 2002 Posts: 28
|
What do you mean binding mode? How to do that?
Regards,
fcho |
|
Back to top |
|
 |
clindsey |
Posted: Mon Sep 02, 2002 9:24 am Post subject: |
|
|
Knight
Joined: 12 Jul 2002 Posts: 586 Location: Dallas, Tx
|
Bindings mode uses shared memory IPC rather than sockets, so there are no channels or listerners involved. Your application is linked with server libraries rather than client libraries. There is a sample PUT program and GET program that are built in both client and bindings mode. These are good to test with. They are amqsput(c) and amqsget(c) meaning if they are run without the (C) on the end, you will be running in bindings mode. If amqsput and amqsget fail on the server, then you have a more basic problem with your queue manager.
By the way, if you are testing with amqscnxc, you do not need to have MQSEVER defined if you pass in the hostname and channelname parameters, e.g
amqscnxc -x localhost(1415) -c SYSTEM.DEF.SVRCONN QM_MGR2.
Charlie |
|
Back to top |
|
 |
mrlinux |
Posted: Tue Sep 03, 2002 3:21 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
MQServer enviorment variable should
be CHANNEL_NAME/TCP/MYSERVER(PORT) NO : _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
|