File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Performance implications of listeners" Watch "Performance implications of listeners" New topic

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?


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="" target="_blank" rel="nofollow"></a>
I agree. Here's the link:
subject: Performance implications of listeners
jQuery in Action, 3rd edition