tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leon Rosenberg" <rosenberg.l...@googlemail.com>
Subject Re: timestamp of tomcat startup?
Date Sat, 06 Jan 2007 01:11:21 GMT
On 1/6/07, cifroes <cifroes@netcabo.pt> wrote:
> Caldarale, Charles R wrote:
> >> From: Jacob Rhoden [mailto:jacob@rhoden.id.au]
> >> Subject: Re: timestamp of tomcat startup?
> >>
> >> I am no expert, but I thought there was a thing called
> >> a LifecycleListener where server.xml can be configured
> >> to call some java code upon startup of tomcat, this
> >> would do what you want yes?
> >>
> >
> > Yes, that's what Leon suggested.  Whether or not it's sufficient depends
> > at least somewhat on the degree of accuracy desired by the OP.  He
> > didn't really tell us what the actual requirements were.
> >
> >  - Chuck
> >
> What I really want is for that catalina.out message to have a timestamp :)
> But I don't want to recompile tomcat so maybe I can live if tomcat
> starts anything JUST after it starts [even if there are no requests]
>
> Does tomcat really starts that context listener just after tomcat starts
> or only when it receives a request?
>
>

depending on your config, but if autodeploy is on (default) the
webapps are deployed at the start and the event is delivered in matter
of few seconds after the start (typically, but not guaranteed if you
have multiple webapps which takes long to initialize).

another question. Why don't you modify the startup.sh to write a
timestamp into a file? it would be a one liner.

regards
Leon

> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message