Are you wanting to start a servlet or load a class?
You can load a servlet at the application level.
load-on-startup in the servlet class element in the web.xml of the app.
<servlet>
<servlet-name>Scored</servlet-name>
<servlet-class>srm.Scored</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
The number indicates the order that the servlet is loaded.
As for a class you will need to look into the class loader for Tomcat.
http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html
Doug
----- Original Message -----
From: "Juanjo Cuadrado" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, May 15, 2006 5:08 PM
Subject: Run class in the start up of Tomcat
Hi,
I'm trying to run a class in startup of Tomcat. I think that this was
possible in others versions of Tomcat (I just started with Tomcat 5). I
think that it was a property in someone element of server.xml that allowed
this.
Anyone can help me? I hope that yes ;) tx
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]