aspose file tools*
The moose likes Servlets and the fly likes When do Session Listeners start? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "When do Session Listeners start?" Watch "When do Session Listeners start?" New topic
Author

When do Session Listeners start?

John Strong
Greenhorn

Joined: Jul 23, 2006
Posts: 13
Do the session listeners specified in the DD within <listener-class> tags start when the app deploys, or do they start when the first session is created, or some other time? Or does this depend on the implementation of the specific Container?
Thanks, - John Strong (pluviosilla@gmail.com)
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

If I wanted to find this out, I would put a System.out.println("I've started"); line in the constructor of a listener and then tail the server logs while starting up and hitting the application.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: When do Session Listeners start?