Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Initialize Webapplication on tomcat Startup

Oliver Schoenwald

2007-02-12

Replies:

Hello and good morning (at least from Germany),

I'm running Tomcat 5.5.17 under Solaris 9 and have created a
webapplication that
starts some repeating background-tasks as soon as the application has
been started
the first time (in other words: I have a single controller-servlet and
the init()-method
contains some calls to classes that create background demon processes
for some system
analysis).

Now, when I restart the tomcat engine, I have to call the URL of my
webapplication to
have the engine initialize my application for the first time. I remember
that there is some
option in the configuration of tomcat which tells the engine to startup
certain applications
automatically. So far I couldn't find that option in the docs.

Can someone be so nice to point me to the right documentation or gives
me an example
how to solve my problem?

Thank you in advance,

Oliver


--
Oliver Sch?nwald, Diplom-Informatiker

FernUniversit?t Hagen
Zentrum f?r IT und Medien (ZMI) - Competence Center Anwendungsentwicklung
Universit?tsstr.21/AVZ - 58084 Hagen - Deutschland
fon: +49 2331 987 1721 - email: oliver.schoenwald@(protected)


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.