This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hello I want to know that in which order the registere listeners will be notified. Means suppose i have registered ServletContextListener,ServletRequestListener,HttpSessionListener then in which order they will be called by container?
They are called when the appropriate event occurs. ServletContextListener reacts to changes in the servlet context og the applciation (e.g. Servlet initialisation). ServletRequestListener reacts to requests. HttpSessionListener reacts to session creation/deletion events.
So if i have registered ServletContextListener ,HttpSessionListener,ServletRequestListener then first ServletContextListener will be called, second ServletRequestWill be called , and last HttpSessionListener will be called right?? please correct me if i am wrong.
As already mentioned the listener is called when the appropriate event occurs. So, obviously a servlet context event listener will be called before a servlet request or session event listeners. [ September 29, 2008: Message edited by: Bosun Bello ]
Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com