You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Stan Devyatovsky <st...@devyatovsky.com> on 2005/03/03 05:54:26 UTC
JarResourceLoader
Hello,
If I use JarResourceLoader, will any uploads of new .jar with
templates be notified by it?
I.e., I first uploaded templates.jar, started webapp,
then reuploaded modified templates.jar - will my modifications
take place without restarting webapplication?
Thank you in advance.
--
Best regards,
Stan mailto:stan@devyatovsky.com
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: JarResourceLoader
Posted by Simon Christian <si...@stoutstick.com>.
Hi Stan,
Stan Devyatovsky wrote:
> Hello Shinobu,
>
>
>>> If I use JarResourceLoader, will any uploads of new .jar with
>>> templates be notified by it?
>>> I.e., I first uploaded templates.jar, started webapp,
>>> then reuploaded modified templates.jar - will my modifications
>>> take place without restarting webapplication?
>
> SK> It should. If you look at the JarResourceLoader implementation,
> SK> you'll notice that isSourceModified is always true.
> In that case, it will always recompile the Velocity templates from
> .JAR file, no matter what? That's not too performance-wise in that
> case.
Not strictly - if caching is on it will only check if the source has
been 'modified' and therefore recompile according to the interval
specified in
xxx.resource.loader.modificationCheckInterval
In a production environment, you'd probably expect to set that to quite
a high value anyway.
- simon
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re[2]: JarResourceLoader
Posted by Stan Devyatovsky <st...@devyatovsky.com>.
Hello Shinobu,
>> If I use JarResourceLoader, will any uploads of new .jar with
>> templates be notified by it?
>> I.e., I first uploaded templates.jar, started webapp,
>> then reuploaded modified templates.jar - will my modifications
>> take place without restarting webapplication?
SK> It should. If you look at the JarResourceLoader implementation,
SK> you'll notice that isSourceModified is always true.
In that case, it will always recompile the Velocity templates from
.JAR file, no matter what? That's not too performance-wise in that
case.
--
Best regards,
Stan mailto:stan@devyatovsky.com
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Re: JarResourceLoader
Posted by Shinobu Kawai <sh...@gmail.com>.
Hi Stan,
> If I use JarResourceLoader, will any uploads of new .jar with
> templates be notified by it?
> I.e., I first uploaded templates.jar, started webapp,
> then reuploaded modified templates.jar - will my modifications
> take place without restarting webapplication?
It should. If you look at the JarResourceLoader implementation,
you'll notice that isSourceModified is always true.
Best regards,
-- Shinobu
--
Shinobu Kawai <sh...@gmail.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org