aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes HttpSessionActivationListener & HttpSessionBindingListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "HttpSessionActivationListener & HttpSessionBindingListener" Watch "HttpSessionActivationListener & HttpSessionBindingListener" New topic
Author

HttpSessionActivationListener & HttpSessionBindingListener

sam siu
Greenhorn

Joined: Mar 03, 2005
Posts: 4
HF gave the diagram to show how ServletContextListener works and apparently container needs to create a instance of implemented ServletContextListener class to invoke the method. My question is how does it work for HttpSessionActivationListener and HttpSessionBindingListener when a attribute class implements these two interfaces? Does the container create another instance of attribute class to invoke the method or it has other mechanism to invoke the method.
Colin Fletcher
Ranch Hand

Joined: Sep 10, 2004
Posts: 200
Which ones do you need to declare in the deployment descriptor?


SCJP 1.4 SCWCD 1.4
sam siu
Greenhorn

Joined: Mar 03, 2005
Posts: 4
I need to register this class in DD because of HttpSessionActivationListener, if the attribute class implements only HttpSessionBindingListener, i don't have to register this class, right?
Colin Fletcher
Ranch Hand

Joined: Sep 10, 2004
Posts: 200
You are correct. HttpSessionBindingListener does not need to be configured in the DD.
 
 
subject: HttpSessionActivationListener & HttpSessionBindingListener