users@glassfish.java.net

Re: How to contol the servlets initialization order when deploying an ear?

From: <glassfish_at_javadesktop.org>
Date: Wed, 04 Jun 2008 14:22:05 PDT

There is no contextInitialized() method defined on Servlet, only on ServletContextListener.

The order in which servlets are initialized can be configured via the servlet's load-on-startup element.

However, given that you mention the contextInitialized() method, I assume you're really interested in the order in which ServletContextListeners are invoked? Unfortunately, the current Servlet spec does not provide any mechanism for specifying this order.
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=278412