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 » General Discussion » multiple listeners for same queue manager

Post new topic  Reply to topic Goto page Previous  1, 2
 multiple listeners for same queue manager « View previous topic :: View next topic » 
Author Message
fjb_saper
PostPosted: Tue May 17, 2005 7:08 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

bower5932 wrote:
Well, I just started my qmgr with 2 listeners. Here is my endmqlsr command:
Code:
C:\Documents and Settings\Administrator>endmqlsr -m pubsub.qmgr
2 WebSphere MQ listeners will end shortly.


I believe on UNIX you are stuck on this message until the qmgr shuts down.
I have not been able to shut down a listener that way before the qmgr shutdown...

So yes a kill -9 might be in order although certainly not recommended

Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Wed May 18, 2005 6:38 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Yes, my queue manager was already shutdown when I issued the command. It has to be for the endmqlsr to work.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
PeterPotkay
PostPosted: Wed May 18, 2005 3:15 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

Turns out there are undocumented switches for endmqlsr. -p allows you to specify which port, so you can selectivly choose which listener. And -f allows you to force the listener down, so you don't get the error complaining that the QM is still up.

The caveat is that since that these switches are not docuemneted, they are not officially supported, so we can't rely on them being there with every CSD that goes by.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
vennela
PostPosted: Fri May 20, 2005 11:55 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Quote:
And -f allows you to force the listener down, so you don't get the error complaining that the QM is still up.

How do you do that

I tried
endmqlsr -m QM1 -f
and
endmqlsr -f -m QM1

They don't work.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PeterPotkay
PostPosted: Fri May 20, 2005 12:04 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7717

Code:

C:\>dspmq
QMNAME(QM1)                                              STATUS(Running)

C:\>endmqlsr -m QM1
AMQ9596: Queue Manager 'QM1' still running

C:\>endmqlsr -m QM1 -f
A WebSphere MQ listener will end shortly.

C:\>dspmq
QMNAME(QM1)                                              STATUS(Running)

_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri May 20, 2005 1:01 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

vennela wrote:
Quote:
And -f allows you to force the listener down, so you don't get the error complaining that the QM is still up.

How do you do that

I tried
endmqlsr -m QM1 -f
and
endmqlsr -f -m QM1

They don't work.


Vennela I tried it on Unix.

The message is the same:
Quote:
A WebSphere MQ listener will end shortly.

However
Code:
 ps -ef | grep lsr

will show that the listener did indeed end if you used the -f flag
The qmgr is still running. See Peter's post for windows

Enjoy
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Goto page Previous  1, 2 Page 2 of 2

MQSeries.net Forum Index » General Discussion » multiple listeners for same queue manager
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.