Author |
Message
|
lozaza |
Posted: Wed Mar 13, 2013 7:16 pm Post subject: amqmdain end but listener still running? |
|
|
Apprentice
Joined: 04 Mar 2013 Posts: 27
|
Hi Guys, I use the amqmdain end command to stop queue manager and use dltmqm to delete queue manger as below
amqmdain end QM1
dltmqm QM5
MQ1 is stopped but runmqlsr is still running so it can't be deleted. tried endmqm same thing.
whats the point to have the listener running but queue manager is stopped. is there a way to stop it completely then delete it.
Josh |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Mar 13, 2013 7:24 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9472 Location: US: west coast, almost. Otherwise, enroute.
|
Runmqlsr is a stand-alone listener. Stop using it.
Instead, create a listener object with mqsc command DEFINE LISTENER.
Research control command endmqlsr. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
lozaza |
Posted: Wed Mar 13, 2013 7:45 pm Post subject: |
|
|
Apprentice
Joined: 04 Mar 2013 Posts: 27
|
I didn't use runmqlsr to create listener for QM1, all I did is
DEFINE LISTENER(LISTENER.TCP) TRPTYPE(TCP) PORT(1414)
START LISTENER(LISTENER.TCP) |
|
Back to top |
|
 |
bruce2359 |
Posted: Wed Mar 13, 2013 8:04 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9472 Location: US: west coast, almost. Otherwise, enroute.
|
Runmqlsr does not start or stop with the qmgr. You or a script must start runmqlsr manually.
Runmqlsr is a listener; it does not start a listener. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
exerk |
Posted: Thu Mar 14, 2013 12:57 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
Identify the PID of the QM1 Listener and kill the process and are you trying to delete QM1 or QM5 because your original post says QM5? _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
gbaddeley |
Posted: Thu Mar 14, 2013 2:39 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
lozaza wrote: |
I didn't use runmqlsr to create listener for QM1, all I did is
DEFINE LISTENER(LISTENER.TCP) TRPTYPE(TCP) PORT(1414)
START LISTENER(LISTENER.TCP) |
This will start a runmqlsr.exe, but its not under control of the qmgr because you didn't specify CONTROL(QMGR). Therefore you will need to start and stop it manually using the START / STOP LISTENER mqsc's. Life will be much easier if you redefine the LISTENER object with CONTROL(QMGR). _________________ Glenn |
|
Back to top |
|
 |
lozaza |
Posted: Thu Mar 14, 2013 10:00 pm Post subject: |
|
|
Apprentice
Joined: 04 Mar 2013 Posts: 27
|
exerk wrote: |
Identify the PID of the QM1 Listener and kill the process and are you trying to delete QM1 or QM5 because your original post says QM5? |
Sorry my bad its a typo should be QM1  |
|
Back to top |
|
 |
lozaza |
Posted: Thu Mar 14, 2013 10:28 pm Post subject: |
|
|
Apprentice
Joined: 04 Mar 2013 Posts: 27
|
gbaddeley wrote: |
lozaza wrote: |
I didn't use runmqlsr to create listener for QM1, all I did is
DEFINE LISTENER(LISTENER.TCP) TRPTYPE(TCP) PORT(1414)
START LISTENER(LISTENER.TCP) |
This will start a runmqlsr.exe, but its not under control of the qmgr because you didn't specify CONTROL(QMGR). Therefore you will need to start and stop it manually using the START / STOP LISTENER mqsc's. Life will be much easier if you redefine the LISTENER object with CONTROL(QMGR). |
works perfect just like an muffin! Thanks all inputs from everyone! much appreciated!.
also info I found on IBM to share:
CONTROL(string)
Specifies how the listener is to be started and stopped.:
MANUAL
The listener is not to be started automatically or stopped automatically. It is to be controlled by use of the START LISTENER and STOP LISTENER commands. This is the default value.
QMGR
The listener being defined is to be started and stopped at the same time as the queue manager is started and stopped.
STARTONLY
The listener is to be started at the same time as the queue manager is started, but is not requested to stop when the queue manager is stopped. |
|
Back to top |
|
 |
|