velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keng Wong" <keng.w...@verizon.net>
Subject RE: Loading velocity.properties from Global Context
Date Thu, 17 May 2001 16:52:40 GMT
Thanks Geir. I thought of this too, but will there be a race issue if the
servlet engine is restarted and requests comes in to other servlets before
the 'init-servlet' is done initializing ?

> -----Original Message-----
> I was playing with this, and couldn't get it to work either w/ Tomcat
> 3.2.1 - however, I didn't play very long.
>
> Once strategy that I use to solve this problem is in your webapp
> specific web.xml in WEB-INF, I make one of the servlets
> <load-on-startup>, so it takes care of the Velocity initialization for
> you.
>
> You only need to do it once - once any of your servlets initializes
> Velocity in a webapp, then the Velocity runtime will be ready for all.
> Thats why the single servlet <load-on-startup> technique works.


Mime
View raw message