Re: [Webware-discuss] reloading source modules

2002-09-26 Thread Jason Hildebrand
On Wed, 2002-09-25 at 17:17, Tavis Rudd wrote: > I don't think there's a graceful way around that: if a module is changed > after the appserver starts, but before the application actually imports it. Well there is a way: you can install a hook which gets called when the python "import" statem

Re: [Webware-discuss] reloading source modules

2002-09-25 Thread Tavis Rudd
That's something for the administrator of the site to think about. This sort of reload behaviour should be turned off by default, and only enable during dev/testing. But, this shouldn't affected processing of transactions if the site uses reliable persistance mechanisms. All active requests a

Re: [Webware-discuss] reloading source modules

2002-09-25 Thread Mike Orr
On Wed, Sep 25, 2002 at 12:00:26PM -0700, Tavis Rudd wrote: > Actually, I have implemented this in expWebware and it should be possible for > someone to implement in Webware. What happens to transactions that are in the middle of processing or haven't started yet when the server is restarted?

Re: [Webware-discuss] reloading source modules

2002-09-25 Thread Tavis Rudd
On September 25, 2002 02:04 pm, Jason Hildebrand wrote: > Here are a couple of ideas for improving the implementation, though. > > One procedure I do fairly often is to 'cvs update' my application then > restart the server. I'm not sure if your implementation will work > flawlessly in the situati

Re: [Webware-discuss] reloading source modules

2002-09-25 Thread Jason Hildebrand
On Wed, 2002-09-25 at 15:02, Tavis Rudd wrote: > On September 25, 2002 12:56 pm, Jason Hildebrand wrote: > > Cool! It's basically the same idea that I had > > (see http://webware.colorstudy.net/twiki/bin/view/Webware/OneShot), but > > it's the application server that restarts itself, not some ext

Re: [Webware-discuss] reloading source modules

2002-09-25 Thread Tavis Rudd
On September 25, 2002 12:56 pm, Jason Hildebrand wrote: > Cool! It's basically the same idea that I had > (see http://webware.colorstudy.net/twiki/bin/view/Webware/OneShot), but > it's the application server that restarts itself, not some external > entity, which makes it much cleaner and more ge

Re: [Webware-discuss] reloading source modules

2002-09-25 Thread Jason Hildebrand
On Wed, 2002-09-25 at 14:00, Tavis Rudd wrote: > On September 25, 2002 10:56 am, Jason Hildebrand wrote: > > On Wed, 2002-09-25 at 08:35, Max Ischenko wrote: > > > Could someone point me to the webware code > > > which handles automagic reloading of servlet code? > > > > Reloading servlets is a no

Re: [Webware-discuss] reloading source modules

2002-09-25 Thread Ian Bicking
On Wed, 2002-09-25 at 14:00, Tavis Rudd wrote: > This approach is significantly simpler and faster than oneshot and less prone > to strange errors as the AppServer operates normally unless a module has > changed. This is important, because if you just reload the changed module you won't chang

Re: [Webware-discuss] reloading source modules

2002-09-25 Thread Tavis Rudd
On September 25, 2002 10:56 am, Jason Hildebrand wrote: > On Wed, 2002-09-25 at 08:35, Max Ischenko wrote: > > Could someone point me to the webware code > > which handles automagic reloading of servlet code? > > Reloading servlets is a nontrivial problem, since one must also > check all modules i

Re: [Webware-discuss] reloading source modules

2002-09-25 Thread Jason Hildebrand
On Wed, 2002-09-25 at 08:35, Max Ischenko wrote: > Could someone point me to the webware code > which handles automagic reloading of servlet code? Reloading servlets is a nontrivial problem, since one must also check all modules imported from that servlet. AFAIK, no one has implemented a full-sc

[Webware-discuss] reloading source modules

2002-09-25 Thread Max Ischenko
Could someone point me to the webware code which handles automagic reloading of servlet code? I want to try to implement it for my custom modules... -- Bst rgrds, M.A.X.: Mechanical Artificial Xenomorph. --- This sf.net email is sponsored by