1) Initialize Servlets to load on startup in the web application deployment descriptor.
2) The contextInitilized method is called on listeners implementing ServletContextListener which have been instantiated.
3) Instantiate listeners defined in the web application DD
4) Initialize filters defined in the web application DD
[ January 18, 2007: Message edited by: flytothemoon ]
The correct order is as follows
First the container loads filters
Next container Loads Listeners
Then container loads sevlets
I'm afraid that's incorrect.
This is from Servlet spec. 2.4 -- page 78
When a web application is deployed into a container, the following steps must be performed, in this order, before the web application begins processing client requests.
� Instantiate an instance of each event listener identified by a <listener> element in the deployment descriptor.
� For instantiated listener instances that implement ServletContextListener,
call the contextInitialized() method.
� Instantiate an instance of each filter identified by a <filter> element in the deployment descriptor and call each filter instance�s init() method.
� Instantiate an instance of each servlet identified by a <servlet> element that includes a <load-on-startup> element in the order defined by the load-on-startup element values, and call each servlet instance�s init() method.
[ January 19, 2007: Message edited by: Sayak Banerjee ]
If you don't have the specs you can find the link here SCWCD Links