aspose file tools*
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
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