||How Servlet Containers Work|
|Subject:||Servlet init() method not getting called|
Hi I made a simple class that implements javax.servlet.Servlet and that's the only class that's in my .WAR folder, I run JBOSS and I see it deployes my .WAR file, but the init() method doesn't get triggered. What do I need to do to make the init() method be called? Isn't the servlet instantiated when the web server loads the web app, or does it wait for the very first request to come in? From your sample code I don't see when the init() method is called so it means that it doesn't wait for the first request.
Showing messages 1 through 1 of 1.
Servlet init() method not getting called
2008-06-19 13:46:41 jtai1111 [View]