What is an application scope servlet ?.
You can ask the container to initialize a servlet at container start up by
setting the <load-on-startup>  parameter to 1 in web.xml. like this.
<servlet>
<servlet-name>action</servlet-name>
 <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

Antony Paul

----- Original Message -----
From: "Mikael Aronsson" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 19, 2003 5:41 PM
Subject: Stupid servlet question...


> Hi !
>
> I have an application scope servlet and it works fine, but I would like to
> run it all the time as soon as tomcat starts, not just after the first
use,
> is this possible ?
>
> Mikael
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to