Last night I was going through the listeners(ServletContextListener...) in HFSJ. Do we have to remember all the method names in all those 8 listener interfaces. What sort of questions are asked in the exam from the listener perspective. Any leads ?
Joined: Oct 09, 2003
You should have a fair understanding about the methods in each interface. The other things are, 1.Listener Events. 2.The listeners which need not register in the DD. 3.Its order of execution
Yes you have to know the listeners, the method names, the method parameters (the actual event classes), AND the method available from the event. For exemple, know that HttpSessionEvent has a getSession() method to access the session your listening to.
Know also when listeners are loaded and in which order. Know in which order they are invoked (both during webapp life and at webapp shutdown time (reverse order for this one)).
This is not a great amount of work, but definitely necessary.