File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Soft Skills this week in the Jobs Discussion 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: 40052
    
  28
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: 42918
    
  68
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.
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