wood burning stoves*
The moose likes Beginning Java and the fly likes How the listeners work s basically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How the listeners work s basically" Watch "How the listeners work s basically" New topic
Author

How the listeners work s basically

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
Any one in Emprise application ,we use listener such queue listener, message listener ,port listener etc. How the listeners work s basically??


Listener keep on checking any particular event occurs or not?. Then jvm utilize more resource for this??
Sumit Patil
Ranch Hand

Joined: May 25, 2009
Posts: 296

This might be helpful

Listeners


Thanks & Regards, Sumeet
SCJP 1.4, SCWCD 5, LinkedIn Profile
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36598
    
  16
Sumit Patil wrote:This might be helpful

Listeners
Nice article.
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
I read the article ,it is good. but does not contain how the listener work details in depth

Could you refer some thing else
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
If you told us what you do understand about how listeners work, then we could fill in the gaps. Right now we have to guess what you do or do not understand, which is a hit-or-miss proposition, and thus not very appealing. This is of course true for all questions, not just this one.


Ping & DNS - updated with new look and Ping home screen widget
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
There they are saying that concept of listener and how to configure the listener

But I like to know the low level implementation

EX:
1) Port is a memory area
2) JVM keep on checking that memory area whether any signals appears there or not?
3) If any signals appear then it has to activate the listener?

I am not sure about the correctness of my points??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How the listeners work s basically
 
Similar Threads
SessionListener does not appear to be listening
Order of Listener Notification
two listner classes in web.xml ?
How to find if the servlet is newly created or it was already existing
JComboBox display issue when changing models