Re: reload on demand

2007-03-02 Thread Kent Tong
Filip Hanik - Dev Lists hanik.com> writes: > besides having zero purpose in a production environment? Right, it has no purpose in a production env. It's only used in development. > You've already been presented with so many options, take one of them and > use them, you can accomplish exactly w

Re: reload on demand

2007-03-02 Thread Kent Tong
Yoav Shapira apache.org> writes: > The general idea is to reload an app when you know it needs to be > reloaded, not when it's accessed, so as to minimize delays as seen by > the users. It's a basic principle of designing for performance. > However, there's nothing written in stone that says you

Re: reload on demand

2007-03-02 Thread Filip Hanik - Dev Lists
Kent Tong wrote: Filip Hanik - Dev Lists hanik.com> writes: sounds like you want the cake and eat it too, follow Yoav's suggestion, and write a macro so that everytime you update a class you touch a watched resource after the update has been complete I really don't understand. What'

Re: reload on demand

2007-03-02 Thread Yoav Shapira
Hi, On 3/2/07, Kent Tong <[EMAIL PROTECTED]> wrote: Filip Hanik - Dev Lists hanik.com> writes: > sounds like you want the cake and eat it too, follow Yoav's suggestion, > and write a macro so that everytime you update a class you touch a > watched resource after the update has been complete I

Re: reload on demand

2007-03-02 Thread Kent Tong
Filip Hanik - Dev Lists hanik.com> writes: > sounds like you want the cake and eat it too, follow Yoav's suggestion, > and write a macro so that everytime you update a class you touch a > watched resource after the update has been complete I really don't understand. What's wrong with reloading

Re: reload on demand

2007-03-02 Thread Filip Hanik - Dev Lists
Kent Tong wrote: Filip Hanik - Dev Lists hanik.com> writes: see that the solution I gave you, doesn't need to reload the app, it simply reloads the individual class file. for large apps, you don't have to wait for the entire app to reload that would qualify as automatic too, wouldnt it?

RE: Re: reload on demand

2007-03-02 Thread Christophe Pierret
ell, it will manage existing instances as instances of the previous class version and new instances will be created using the new version. -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Kent Tong Envoyé : vendredi 2 mars 2007 04:51 À : dev@tomcat.apache.org Obj

Re: Re: reload on demand

2007-03-01 Thread Kent Tong
Bill Barker wilshire.com> writes: > TC 3.3.x has something like this. You could look at the DependClassLoader > there for some ideas. Right. It seems that the ReloadInterceptor (http://tomcat.apache.org/tomcat-3.3-doc/serverxml.html#ReloadInterceptor) does that. But why it has been removed?

Re: reload on demand

2007-03-01 Thread Kent Tong
Filip Hanik - Dev Lists hanik.com> writes: > see that the solution I gave you, doesn't need to reload the app, it > simply reloads the individual class file. for large apps, you don't have > to wait for the entire app to reload > that would qualify as automatic too, wouldnt it? Thanks. I've ta

Re: reload on demand

2007-03-01 Thread Kent Tong
Filip Hanik - Dev Lists hanik.com> writes: > I wasn't referring to this attribute, I was referring to a classloaded > that reloads individual classes. > I know this was done some time ago, not sure if it was included in > tomcat or not, but search the dev archives. Thanks. But it is still relo

Re: reload on demand

2007-03-01 Thread Filip Hanik - Dev Lists
Kent Tong wrote: Yoav Shapira apache.org> writes: There will always be at least one manual step, because as things stand right now a computer program can't read your mind ;) You don't want it to reload automatically when a specific resource (or resources) is/are modified, you don't want it

RE: Re: reload on demand

2007-03-01 Thread Bill Barker
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Kent Tong > Sent: Thursday, March 01, 2007 5:12 PM > To: dev@tomcat.apache.org > Subject: Re: reload on demand > > Yoav Shapira apache.org> writes: > > > There will always be at

Re: reload on demand

2007-03-01 Thread Eric Wertman
WebSphere has this option on deployment, you can indicate that an app should poll it's class files every so often to see if there are any changes, and restart itself if it does. It is a nice option to have, but I agree that I'd rather my computer program not do anything I didn't ask of it. K

Re: reload on demand

2007-03-01 Thread Kent Tong
Yoav Shapira apache.org> writes: > There will always be at least one manual step, because as things stand > right now a computer program can't read your mind ;) You don't want > it to reload automatically when a specific resource (or resources) > is/are modified, you don't want it to reload auto

Re: reload on demand

2007-03-01 Thread Filip Hanik - Dev Lists
Yoav Shapira wrote: Hi, On 3/1/07, Kent Tong <[EMAIL PROTECTED]> wrote: Christophe Pierret sparus-software.com> writes: > Then you can create a dirty.txt file that you add as a WatchedRessource. > When you are ready to run, "touch" it and it will reload automatically. But then it takes an

Re: Re: reload on demand

2007-03-01 Thread Yoav Shapira
Hi, On 3/1/07, Kent Tong <[EMAIL PROTECTED]> wrote: Christophe Pierret sparus-software.com> writes: > Then you can create a dirty.txt file that you add as a WatchedRessource. > When you are ready to run, "touch" it and it will reload automatically. But then it takes an extra manual step, ie,

Re: Re: reload on demand

2007-03-01 Thread Kent Tong
Christophe Pierret sparus-software.com> writes: > Then you can create a dirty.txt file that you add as a WatchedRessource. > When you are ready to run, "touch" it and it will reload automatically. But then it takes an extra manual step, ie, touching the dirty.txt file, before accessing the webap

Re: reload on demand

2007-03-01 Thread Filip Hanik - Dev Lists
Kent Tong wrote: Yoav Shapira apache.org> writes: There's reloadable as a Context attribute, documented at http://tomcat.apache.org/tomcat-5.5-doc/config/context.html, and you can also define a list of static resources (not classes) to be watched to trigger a reload, via the WatchedResource

RE: Re: reload on demand

2007-03-01 Thread Christophe Pierret
> Kent Tong writes: > > Yoav Shapira apache.org> writes: > > > There's reloadable as a Context attribute, documented at > > http://tomcat.apache.org/tomcat-5.5-doc/config/context.html, and you > > can also define a list of static resources (not classes) to be watched > > to trigger a reload

Re: reload on demand

2007-02-28 Thread Kent Tong
Yoav Shapira apache.org> writes: > There's reloadable as a Context attribute, documented at > http://tomcat.apache.org/tomcat-5.5-doc/config/context.html, and you > can also define a list of static resources (not classes) to be watched > to trigger a reload, via the WatchedResources element. See

Re: reload on demand

2007-02-28 Thread Yoav Shapira
Hola, On 2/28/07, Kent Tong <[EMAIL PROTECTED]> wrote: Filip Hanik - Dev Lists hanik.com> writes: > personally I don't see a very high value of it. > If I remember correctly, a different approach has already been > implemented using one more layer of classloaders. > you'd need to search around

Re: reload on demand

2007-02-28 Thread Kent Tong
Filip Hanik - Dev Lists hanik.com> writes: > personally I don't see a very high value of it. > If I remember correctly, a different approach has already been > implemented using one more layer of classloaders. > you'd need to search around or someone might jump in and let you know > where it is

Re: reload on demand

2007-02-28 Thread Filip Hanik - Dev Lists
Kent Tong wrote: Hi, I've recently posted a request for a reload-on-demand feature (http://thread.gmane.org/gmane.comp.jakarta.tomcat.user/144699). Wondering if you guys (Tomcat developers) think it's useful, nice to have or just total crap? If it's not crap, I may try to fi

reload on demand

2007-02-28 Thread Kent Tong
Hi, I've recently posted a request for a reload-on-demand feature (http://thread.gmane.org/gmane.comp.jakarta.tomcat.user/144699). Wondering if you guys (Tomcat developers) think it's useful, nice to have or just total crap? If it's not crap, I may try to find some time to see