ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » MQ Listener on Linux won't start by xinetd

Post new topic  Reply to topic
 MQ Listener on Linux won't start by xinetd « View previous topic :: View next topic » 
Author Message
Yannanlu
PostPosted: Mon Jul 01, 2002 4:37 pm    Post subject: MQ Listener on Linux won't start by xinetd Reply with quote

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
View user's profile Send private message
kolban
PostPosted: Mon Jul 01, 2002 6:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
froldan
PostPosted: Thu Jul 18, 2002 7:57 am    Post subject: Reply with quote

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
View user's profile Send private message
mrlinux
PostPosted: Thu Jul 18, 2002 8:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
froldan
PostPosted: Thu Jul 18, 2002 8:45 am    Post subject: Reply with quote

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
View user's profile Send private message
mrlinux
PostPosted: Thu Jul 18, 2002 8:50 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
froldan
PostPosted: Thu Jul 18, 2002 9:40 am    Post subject: Reply with quote

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
View user's profile Send private message
mrlinux
PostPosted: Thu Jul 18, 2002 9:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
froldan
PostPosted: Thu Jul 18, 2002 10:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » MQ Listener on Linux won't start by xinetd
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.