wood burning stoves 2.0*
The moose likes Servlets and the fly likes Performance implications of listeners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Performance implications of listeners" Watch "Performance implications of listeners" New topic
Author

Performance implications of listeners

Ronald Heukers
Ranch Hand

Joined: Jul 20, 2005
Posts: 69
Hi all,

We are here starting to discover the benefits of servlet listeners in our web-applications.

I am wondering however if there is a performance penalty if you start using them heavily.

Can anyone clearify this for me?

regards,

Ronald
Eddy Lee Sin Ti
Ranch Hand

Joined: Oct 06, 2005
Posts: 135
Based on the application requirements, if you need to implement the same code else where other than the listeners, i don't think the performance would be an issue since the same processing would occur anyway. The container will cache listeners instance and reuse them. In return, you get better manageability of your code by implementing explicitly your event handling code in well defined interfaces.


SCJP, SCWCD, SCJWS, IBM 700,IBM 701, IBM 704, IBM 705, CA Clarity Technical<br /> <br /><a href="http://eddyleesinti.blogspot.com" target="_blank" rel="nofollow">http://eddyleesinti.blogspot.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Performance implications of listeners
 
Similar Threads
Are Session Activation Listeners configured in DD?
listening to strangers ?
Garbage Collection
How to add actionListener to ScheduledExecutorService?
Broadcasting events