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 IndexGeneral DiscussionWhat is Listener in MQ.

Post new topicReply to topic
What is Listener in MQ. View previous topic :: View next topic
Author Message
jerrydBrowser
PostPosted: Mon Feb 22, 2010 6:55 pm Post subject: What is Listener in MQ. Reply with quote

Newbie

Joined: 22 Feb 2010
Posts: 4

Hi,
I am a newbie in MQ. While playing around MQ V7.0.1, I don’t think that I fully understand the listener in MQ. I hope that I can get some clarification via your help.

Based on the MQ InfoCenter, “Listener objects are used to accept incoming network requests from remote queue managers, or client applications. Once accepted, a listener starts the associated receiver or server connection channels to allow the queue manager to receive messages”.

If my interpretation is correct, does it mean that there is a one-to-one association between channel and listener?

I have noticed that when I created a new queue manager using: “crtmqm” command, the system will have a listener called “SYSTEM.DEFAULT.LISTENER.TCP” created automatically. What channel is this listener associated with?

I also have used MQ Explorer to create a new listener ,“test1”. So now my system has 2 listeners:
display listener(*)
AMQ8630: Display listener information details.
LISTENER(SYSTEM.DEFAULT.LISTENER.TCP)
AMQ8630: Display listener information details.
LISTENER(test1)

If there is a request pick up by “test1” listener, what channel is going to be associated with such request?

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Feb 22, 2010 7:18 pm Post subject: Re: What is Listener in MQ. Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

jerrydBrowser wrote:
does it mean that there is a one-to-one association between channel and listener?




jerrydBrowser wrote:
I have noticed that when I created a new queue manager using: “crtmqm” command, the system will have a listener called “SYSTEM.DEFAULT.LISTENER.TCP” created automatically. What channel is this listener associated with?


None. See above.

jerrydBrowser wrote:
If there is a request pick up by “test1” listener, what channel is going to be associated with such request?


None. See above. Channels match with their pairs.

You'll find the Intercommunication manual an invaluable source of information. You might also find the MQ Primer useful.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Tue Feb 23, 2010 12:54 am Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

(In addition ) Also read about the runmqlsr and amqcrsta processes in detail.

Have fun !
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
mvic
PostPosted: Tue Feb 23, 2010 1:33 am Post subject: Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

shashivarungupta wrote:
(In addition ) Also read about the runmqlsr and amqcrsta processes in detail.

Both of these are advanced topics for someone learning what a listener is.

Good advice for later study though

jerrydBrowser wrote:
If my interpretation is correct, does it mean that there is a one-to-one association between channel and listener?

I have noticed that when I created a new queue manager using: “crtmqm” command, the system will have a listener called “SYSTEM.DEFAULT.LISTENER.TCP” created automatically. What channel is this listener associated with?

A few basics:

A listener is a part of MQ that starts and "listens" on a TCP/IP port, and begins a channel when an inbound request arrives on that port.

If using a listener "object" you must start it. When you do so, you should then see a runmqlsr process running.

Any object named SYSTEM.DEFAULT.* is intended to be a template, and an example that might be used for your own objects. It's not advisable to alter them and use them as part of your running MQ system.

A channel is a very separate type of thing from a listener. A listener is involved in starting up an instance of a channel, but there is no general mapping relationship between specific channels and listeners apart from this.
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Tue Feb 23, 2010 1:53 am Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

mvic wrote:
...If using a listener "object" you must start it. When you do so, you should then see a runmqlsr process running.

A channel is a very separate type of thing from a listener. A listener is involved in starting up an instance of a channel, but there is no general mapping relationship between specific channels and listeners apart from this.


Start the listener and then look at the runmqlsr process status., if the person doesn't know anything about the runmqlsr then why he should look into that ..just for the sake of the steps !!!
I believe .. if he/she knows what is runmqlsr and what it does then it would be more understandable and realistic for him/her. Anyways its 'jerrydBrowser' who gonnu decide what to do and what not to do.


_________________
*Life will beat you down, you need to decide to fight back or leave it.


Last edited by shashivarungupta on Tue Feb 23, 2010 2:07 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
exerk
PostPosted: Tue Feb 23, 2010 2:05 am Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

shashivarungupta wrote:
mvic wrote:
...If using a listener "object" you must start it. When you do so, you should then see a runmqlsr process running.

A channel is a very separate type of thing from a listener. A listener is involved in starting up an instance of a channel, but there is no general mapping relationship between specific channels and listeners apart from this.


Start the listener and then look at the runmqlsr process status., if the person doesn't know anything about the runmqlsr then why he should look into that ..just for the sake of the steps !!!
I believe .. if he/she knows what is runmqlsr and what it does then it would be more understandable and realistic for him/her.



When a Listener OBJECT is created, just what do you think it does in the background? Execute the runmqlsr command by any chance? Which is why I believe mvic suggested checking the object once started. Statements such as...

Quote:
"...if he/she knows what is runmqlsr and what it does then it would be more understandable and realistic for him/her. ..."


...confuse me as to what exactly you mean, let alone how confusing it must be for someone who is just starting out with WMQ.
_________________
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
View user's profile Send private message
shashivarungupta
PostPosted: Tue Feb 23, 2010 2:41 am Post subject: Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

exerk wrote:

Quote:
"...if he/she knows what is runmqlsr and what it does then it would be more understandable and realistic for him/her. ..."


...confuse me as to what exactly you mean, let alone how confusing it must be for someone who is just starting out with WMQ.


I meant to say.. read about the basics of listener..basics of mq.. then ofcourse go for runmqlsr and amqcrsta that are related to listener topic .. don't miss that.
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
jerrydBrowser
PostPosted: Thu Mar 04, 2010 7:19 am Post subject: Reply with quote

Newbie

Joined: 22 Feb 2010
Posts: 4

Thanks alll for the great information. I will go through those information you mentioned.
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexGeneral DiscussionWhat is Listener in MQ.
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.