File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes AttributeListeners VS BindingListeners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "AttributeListeners VS BindingListeners" Watch "AttributeListeners VS BindingListeners" New topic
Author

AttributeListeners VS BindingListeners

Ricardo Cortes
Ranch Hand

Joined: Jan 23, 2002
Posts: 140
I am having some problems understanding the difference in functionality provided by the HttpSessionAttributeListener interface and the HttpSessionBindingListener interface. Does anyone have an easy way of differentiating the roles of the above named interfaces?
[ May 06, 2002: Message edited by: Ricardo Cortes ]

Sun Certified J2EE Architect for the J2EE Platform (Part 1)<br />Sun Certified Web Component Developer for the J2EE Platform<br />Sun Certified Programmer for the Java 2 Platform
Ricardo Cortes
Ranch Hand

Joined: Jan 23, 2002
Posts: 140
Actually, I think I finally figured it out. Correct me if I am wrong. If I have an object aBook of type Book, then HttpSessionAttributeListener will send out a notification when an object has been added, replaced or removed from the session whereas HttpSessionBindingListener will send out a notification (as long as Book implements the HttpSessionBindingListener interface) when aBook has been bound or unbound from the session. Is this a correct?
Ricardo Cortes
Ranch Hand

Joined: Jan 23, 2002
Posts: 140
I guess I never realized how good the search function of this messageboard really was...I did some searching and found several posts on the subject, including this one:
http://www.coderanch.com/t/164328/java-Web-Component-SCWCD/certification/difference-HttpSessionBindingListner-HttpSessionAttributeListner
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AttributeListeners VS BindingListeners
 
Similar Threads
Time Capsule
Home interface or Home Interface stub
Regarding Interfaces
Writing an Interface
How To Call Two Different Classes From the Main Program Using the Same API?