velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Milo <msimp...@kikkoman.org>
Subject Re: JBoss3.0/Tomcat & Velocity works; template caching question
Date Thu, 11 Jul 2002 02:15:01 GMT
>
>
>> Yeah, dled Tomcat by itself and gave it a shot.  The trick is to 
>> creatively use Tomcat's classloader hierarchy.  Note for everybody 
>> else this is only for development time.  For deployment you should 
>> put your templates in with your webapp.
>
>
> From 
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html.
>
> ClassLoader Hierarchy
>      Bootstrap
>          |
>       System
>          |
>       Common
>      /      \
> Catalina   Shared   <--- put your velocity templates here, non-jared
>              |  |          eg, |$CATALINA_HOME/classes|
>             /   \
>        Webapp1  Webapp2 ...
>
> I'll write something up this weekend.
>
> Back to the caching question wrt to the classpath loader:  How do 
> specify the "don't reload my templates"; property the 
> velocity.properties file?  I think the default caching behavior of the 
> classpath loader needs to be documented/broadcast further.  All I've 
> seen wrt the classpath loader is how to get it working.  ;)  And I bet 
> there are people running the classpath loader in production doing mad 
> template reparsing.


Answered my own question.

Printed out the Velocity Developer's Guide and had a nice little sit 
down and end-to-end read somewhere where I wouldn't be distracted by the 
computer, Starbucks!  Sections 10 and 12 answered my question; 
"<loader_name>.resource.loader.cache = false".  Bingo.  

Milo S.




--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message