Author |
Message
|
Yannanlu |
Posted: Mon Jul 01, 2002 4:37 pm Post subject: MQ Listener on Linux won't start by xinetd |
|
|
Apprentice
Joined: 23 Jan 2002 Posts: 27
|
Hi all,
I have MQSeries 5.2 on my Linux (2.4.9-31). I can run my apps in bind mode. But when I ran the same code in client mode, the code failed to create qmgr. Then I found out the xinetd failed to start the listener.
When I ran "telnet localhost 1414", the server disconnected me rightaway. Does anyone has an idea on this?
Thanks in advance,
Yannan |
|
Back to top |
|
 |
kolban |
Posted: Mon Jul 01, 2002 6:12 pm Post subject: |
|
|
 Grand Master
Joined: 22 May 2001 Posts: 1072 Location: Fort Worth, TX, USA
|
What does the entry in your xinetd configuration file look like? |
|
Back to top |
|
 |
froldan |
Posted: Thu Jul 18, 2002 7:57 am Post subject: |
|
|
Novice
Joined: 17 Jul 2002 Posts: 15
|
I got the same problem in a Solaris Box (with inetd). But I gave up and installed it on Red Hat Linux 7.3 (with xinetd) and it worked fine. Just add the respective line on /etc/services and add a config file for the mqseries service on /etc/xinetd.d . If you resolve your problem in other way tell me and may be I would get back to my solaris box.
Regards |
|
Back to top |
|
 |
mrlinux |
Posted: Thu Jul 18, 2002 8:39 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
Not that this is my preferred method but try
runmqlsr -m QMGR_NAME -t TCP -p 1414 &
The inetd is my preferred method
/etc/inetd.conf
QMGR_NAME stream tcp nowait mqm /opt/mqm/bin/amqcrsta amqcrsta -m QMGR_NAME
/etc/services
QMGR_NAME 1414/tcp #MQSeries _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
froldan |
Posted: Thu Jul 18, 2002 8:45 am Post subject: |
|
|
Novice
Joined: 17 Jul 2002 Posts: 15
|
But the configuration of xinetd is different from inetd, add the line :
mqseries 1414/tcp # MQSeries channel listener
in /etc/services
and add a file named mqseries in /etc/xinetd.d containing this lines :
service mqseries
{
id = mqseries-stream
socket_type = stream
protocol = tcp
user = root
server = /opt/mqm/bin/amqcrsta
wait = no
disable = no
}
restart xined /etc/init.d/xinetd stop
/etc/init.d/xinetd start
and then try telnet localhost 1414
Hope this helps you |
|
Back to top |
|
 |
mrlinux |
Posted: Thu Jul 18, 2002 8:50 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
I think you need to change the name of the id field to your queue manager name _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
froldan |
Posted: Thu Jul 18, 2002 9:40 am Post subject: |
|
|
Novice
Joined: 17 Jul 2002 Posts: 15
|
Thanks, I think that you are right, i have to add the qmanager name, only one more question, what for is the -m option in "amqcrsta -m QMGR_NAME" ? I think that it is to set the qmanager to listen in that port , so is it possible to have to qmanagers in the same port ?
Thanks Master Yoda !! |
|
Back to top |
|
 |
mrlinux |
Posted: Thu Jul 18, 2002 9:43 am Post subject: |
|
|
 Grand Master
Joined: 14 Feb 2002 Posts: 1261 Location: Detroit,MI USA
|
No it is to pass in the queue manager name to the listener process.
And you can only have on queue manager per port. _________________ Jeff
IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries |
|
Back to top |
|
 |
froldan |
Posted: Thu Jul 18, 2002 10:05 am Post subject: |
|
|
Novice
Joined: 17 Jul 2002 Posts: 15
|
Great, Thanks Master Jedi ! I am going to put the QMGR_NAME . I think it was working for me because i only have one QMGR defined, if I would have
created another maybe i would have a problem , or the amqcrsta takes the first one created ? |
|
Back to top |
|
 |
|