aspose file tools
The moose likes Servlets and the fly likes Listener Interfaces Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Listener Interfaces" Watch "Listener Interfaces" New topic
Author

Listener Interfaces

Vijay Rajaram
Greenhorn

Joined: Nov 17, 2003
Posts: 12
Hi,
Can someone validate my observation on the configuration of various event listeners?
The classes which implement the interfaces HttpSessionAttributeListener, HttpSessionListener, ServletContextAttributeListener, ServletContextListener has to be configured in the web.xml to get notified of their events.
Where as the classes for the interface HttpSessionActivationListener or HttpSessionBindingListener are not required to be configured in the web.xml and all the objects of those classes which implement these interface and which exist in the current session get notified of its event.
Is my assumption valid?
Thanks,
- VJ
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
Yes VJ, you are right about these assumptions.


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Listener Interfaces
 
Similar Threads
Listeners.Frank, Frank, Frank Please help me!!!!!!!!!!
Quest About Session Manger
HttpSessionActivationListener
Javacap mock test que-27
CallBack functions....