Startup of Server ? First hit for the Context ? Is it guranteed ? Which method is called when the servlet is loaded into memory ?
Its loaded when the webapp containing the Servlet is deployed. Generally this will be when the server starts - but not always depending on how your server is configured. Yes, it is guarenteed. And its the init() method which is called: as is always the case for a first request for a Servlet. Be aware when writing a startup service that there is no guarentee in the spec. for the order webapps can be deployed - s oif the service applies to more than one webapp, you will have to look to a server specific route.