GSNA · Question #172
GSNA Question #172: Real Exam Question with Answer & Explanation
The correct answer is A. HttpSessionBindingListener D. HttpSessionActivationListener. Except for the HttpSessionActivationListener and the HttpSessionBindingListener, all other listeners must be configured in the deployment descriptor. HttpSessionBindingListener has methods that notify the object when it is added to or removed from a session. It has methods that i
Question
Options
- AHttpSessionBindingListener
- BHttpSessionAttributeListener
- CHttpSessionListener
- DHttpSessionActivationListener
Explanation
Except for the HttpSessionActivationListener and the HttpSessionBindingListener, all other listeners must be configured in the deployment descriptor. HttpSessionBindingListener has methods that notify the object when it is added to or removed from a session. It has methods that informs the attributes when the session is about to be activated or passivated. These methods are related to the attributes and not to the complete session. Hence, the container takes care of them and need not be configured in the deployment
Community Discussion
No community discussion yet for this question.