Author |
Message
|
kvranjan |
Posted: Thu Aug 10, 2006 5:23 am Post subject: creating listener |
|
|
Apprentice
Joined: 12 Jul 2006 Posts: 28
|
i have studied that we can create listener by using rummqlsr command.But while
trying i failed to create listener by using runmqlsr .I am using MQ 6.0 in LINUX.
can anybody give reason for this? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 10, 2006 6:13 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Can you provide details of failure? Did you get an error code, some message, did it just not work & if the latter how do you know it's not working (doesn't appear in netstat, doesn't appear in Explorer, etc, etc)?
What options are you using? Why not use START LISTENER?
Some details please  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 10, 2006 6:26 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I don't think runmqlsr will create a LISTENER object.
I just think it will... run a listener.
With listener objects, you don't need to explicitly runmqlsr. You can set the control(qmgr) of the listener object, and everything will be nice and pretty. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kvranjan |
Posted: Thu Aug 10, 2006 6:40 am Post subject: |
|
|
Apprentice
Joined: 12 Jul 2006 Posts: 28
|
Vitor wrote
Quote: |
Can you provide details of failure? Did you get an error code, some message, did it just not work & if the latter how do you know it's not working (doesn't appear in netstat, doesn't appear in Explorer, etc, etc)?
|
I have created a listener with port number 1111 but when i gave the command
runmqlsr -m Qmgr -t tcp -p 1111
listener is not running. it is not returning to the prompt.
any suggestions.
jefflowrey
grand master
Joined: 16 Oct 2002
Posts: 10365
PostPosted: Thu Aug 03, 2006 8:22 am Post subject: Reply with quote
Is 1010 still in the range of ports that require root to start? Doesn't that go up to 1024?
Did you create the listener in MQSC/Explorer, or using runmqlsr? If in mqsc, did you specify that the CONTROL of the listener was QMGR, or did you leave it at the default of MANUAL?
_________________
"Grand Poobah" just means "posts way too much"
Back to top
View users profile Send private message
Quote: |
Did you create the listener in MQSC/Explorer, or using runmqlsr? |
This made me think like that
Any suggestions.
awaiting reply. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 10, 2006 6:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kvranjan wrote: |
runmqlsr -m Qmgr -t tcp -p 1111
listener is not running. it is not returning to the prompt.
any suggestions. |
One suggestion - RTFM! Specifically the entry on runmqlsr in the System Administration manual:
Quote: |
This command is run synchronously and will wait until the listener process has finished before returning to the caller |
So not going back to the prompt is a good thing!
Also as jefflowrey points out, this command runs a listener rather than creates one. Why are you not using a listener object, which is new, bright and shiny for v6 as I intimated earlier? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 10, 2006 6:48 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Well. My fault then. Bad choice of words.
what does "dis lstr(*)" show, in runmqsc?
What does "ps -ef|grep mqlsr" show, in the Linux command line? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kvranjan |
Posted: Thu Aug 10, 2006 7:11 am Post subject: |
|
|
Apprentice
Joined: 12 Jul 2006 Posts: 28
|
hi vitor and jeff,
Sorry for that, i have misunderstood that which i said already.
ps -ef | grep runmqlsr
is showing the listener with port given,but dis listener gives no listener running.
so i did not understand y it is not starting the listener.but end mqlistener is stopping the listener. |
|
Back to top |
|
 |
Vitor |
Posted: Thu Aug 10, 2006 7:20 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
If you start a listener via runqmlsr, is it supposed to show in dis lstr(*)? Do I remember reading somewhere that only services and objects show up in the command, or has someone been spiking my coffee with Pro-Plus again?
kvranjan, have you attempted to use the listener, either via MQ or by telnet (as described in numerous posts in this board)? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
wschutz |
Posted: Thu Aug 10, 2006 7:21 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
No, it will not iirc, but
display lsstatus(*) all
should show it _________________ -wayne |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Aug 10, 2006 7:23 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Right.
Runmqlsr does not do the same thing as "start listener" in mqsc does.
The two "listeners" are completely separate. One is a process, and one is a service that uses a process.
To get the listener object to show a "running" status from where you are now, do this, and to see it in ps -ef, do this
1) endmqlsr
2) "start listener" in runmqsc _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|