Paul Clapham wrote:Basically, yes. Actually they get called when the application is started and stopped (the "servlet context" corresponds to your web application).
I just implemented ServletContextListener and neither of the methods got called.
And I don't want my process to be called when the application starts. That I can do just by putting a thread start call in the servlet class. I'm looking for a way to make this process thread start as soon as tomcat starts.
All I did was create a class that implemented ServletContextListener and added it to the src folder in my Eclipse Servlet project. Is there more that I need to do in order for it to be called?
EDIT: NM, I figured it out. I didn't realize I had to add the listener piece to my web.xml. Thanks.