Sure, there are few possibilities.
One is to make a ServletContextListener, with this you can start up what ever class
you like when the application starts.
Another one is to make servlet and have its load-on-startup parameter set in web.xml
For example if I have a servletcontextListener called ContextAttributeListener I would
define it like this in web.xml for my application.
<listener>
<listener-class>com.firm.listeners.ContextAttributeListener</listener-class>
</listener>
This class can then do what ever you like.
Servlet would be defined like this :
<servlet>
<servlet-name>startup_servlet</servlet-name>
<servlet-class>com.something.project.startup_servlet</servlet-class>
<init-param>
<param-name>someconfigpath</param-name>
<param-value>/WEB-INF/conf/something.properties</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
And as the load-on-startup param is set to 1 it will be the first servlet to be loaded
in the startup line.
Hope this helps
-reynir
> -----Original Message-----
> From: P Sasidhar [mailto:[EMAIL PROTECTED]]
> Sent: 29. n�vember 2002 11:05
> To: [EMAIL PROTECTED]
> Subject: startup classes in tomcat 4.1.12
>
>
> Hi,
>
> Can any one tell me how to configure start up
> classes in tomcat 4.1.12 server
>
>
> sasi
>
>
>
>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>