[Webware-devel] Servlet init / lifecycle

2003-07-28 Thread Aaron Held
In the CVS version it looks like the the servlets are created for each request. I use the servlet instances to cache some common data, so is this a feature of bug? If it is a feature then why was it implemented? One of the main benefits of running an out-of process app server is so you can b

Re: [Webware-devel] Servlet init / lifecycle

2003-07-28 Thread Ian Bicking
On Mon, 2003-07-28 at 10:32, Aaron Held wrote: > In the CVS version it looks like the the servlets are created for each > request. I'm not sure if this was ever the behavior, though I always thought it was too. ServletFactory.py:181 is where the caching is done. The servlet *class* is cached, b

RE: [Webware-devel] Servlet init / lifecycle

2003-07-28 Thread Geoffrey Talvola
Ian Bicking wrote: > On Mon, 2003-07-28 at 10:32, Aaron Held wrote: >> In the CVS version it looks like the the servlets are created for >> each request. > > I'm not sure if this was ever the behavior, though I always thought it > was too. ServletFactory.py:181 is where the caching is done. The

RE: [Webware-devel] Servlet init / lifecycle

2003-07-28 Thread Chuck Esterbrook
On Mon, 28 Jul 2003 15:34:04 -0400, Geoffrey Talvola wrote: >> If caching wasn't done in the factory, I think it should be.  I >> think  that just means we have to have a method to return the >> servlet to the  factory, and then the factory can keep a pool of >> servlets. >> > I agree -- the cachin

RE: [Webware-devel] Servlet init / lifecycle

2003-07-28 Thread Ian Bicking
On Mon, 2003-07-28 at 22:17, Chuck Esterbrook wrote: > On Mon, 28 Jul 2003 15:34:04 -0400, Geoffrey Talvola wrote: > >> If caching wasn't done in the factory, I think it should be. I > >> think that just means we have to have a method to return the > >> servlet to the factory, and then the facto

RE: [Webware-devel] Servlet init / lifecycle

2003-07-28 Thread Ian Bicking
On Mon, 2003-07-28 at 22:54, Ian Bicking wrote: > Really, if caching will be generally implemented I think it still > belongs in servlet factories. I think the right way to do that would be > to move some of what I've put in PythonServletFactory into > ServletFactory, and use a different method in

RE: [Webware-devel] Servlet init / lifecycle

2003-07-28 Thread Chuck Esterbrook
On 28 Jul 2003 23:35:39 -0500, Ian Bicking wrote: > On Mon, 2003-07-28 at 22:54, Ian Bicking wrote: > >> Really, if caching will be generally implemented I think it still >> belongs in servlet factories.  I think the right way to do that >> would be to move some of what I've put in PythonServletFac