The <load-on-startup> tag determines the order in which the specified
classes are run when the application first starts. so for example, say i had
two servlets which i wanted to start up immediately when the application
starts, i would do the following:
<servlet>
<servlet-name>myServlet1</servlet-name>
<servlet-class>package1.myServlet1</servlet-class>
<init-param>...</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet>
<servlet-name>myServlet2</servlet-name>
<servlet-class>package1.myServlet2</servlet-class>
<init-param>...</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
this means that myServlet1 would start up (run) first and then myServlet2
would start up after myServlet1. Often the ordering does not matter but if
you had a class which depended upon another to be up and running first, you
would need to order them correctly otherwise your application may not run as
expected and may well throw exceptions.
HTH
Claire
----- Original Message -----
From: "Shakti" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, December 03, 2003 9:13 AM
Subject: Wht does <load-on-startup> tag in web.xml means ??
Hi,
Wht does <load-on-startup> tag in web.xml means ?? I am using struts
framework with weblogic and i am not able to find out wht is does this tag
implies ? Is this the cause due to which my weblogic is not picking up new
compiled classes without restarting ..???
waiting for a reply ....
Thanks & Regards,
Shakti.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]