Re: [Webware-devel] MiddleKit thoughts

2001-10-17 Thread Ian Bicking
Chuck Esterbrook <[EMAIL PROTECTED]> wrote: > In direct answer to your question, yes I have projects where multiple > clients hit the database, but no they are all MK. (Unless you count the > MySQL GUI that I sometimes use to fix things up.) If you turned off caching (I'm not sure how this woul

Re: [Webware-devel] MiddleKit thoughts

2001-10-17 Thread Jack Moffitt
> I think many web apps including my own could realize a big performance gain > if they only had to fetch objects that changed. I'd really like to see > databases allow clients to listen for this info, or a solution that effects > the same thing but as an add-on/tool. I've done this in a convo

Re: [Webware-devel] MiddleKit thoughts

2001-10-17 Thread Chuck Esterbrook
At 11:21 PM 10/17/2001 -0600, Jack Moffitt wrote: > > Not only doesn't MK deal well with legacy databases, I don't think it > > would deal well at all with non-MK clients accessing and updating the > > database. At least that is my impression, as MK does a lot of > > caching. > >I'd like to hear

Re: [Webware-devel] MiddleKit thoughts

2001-10-17 Thread Jack Moffitt
> Do you have to access that storage from different programs? If not > then you could just transfer the information to the new (slightly > different) database structure. Well, yes. That's part of the reason for using LDAP, in that browsing clients can use it directly. So one interface would be

Re: [Webware-devel] MiddleKit thoughts

2001-10-17 Thread Chuck Esterbrook
At 11:02 PM 10/17/2001 -0600, Jack Moffitt wrote: > > At 07:39 PM 10/17/2001 -0600, Jack Moffitt wrote: > > >Has anyone put any brainpower towards this already that I can jump in > > >on? Chuck mentioned he had some ideas... what are they? :) > > > > I did? Er, I use MK for just about everything.

Re: [Webware-devel] MiddleKit thoughts

2001-10-17 Thread Jack Moffitt
> At 07:39 PM 10/17/2001 -0600, Jack Moffitt wrote: > >Has anyone put any brainpower towards this already that I can jump in > >on? Chuck mentioned he had some ideas... what are they? :) > > I did? Er, I use MK for just about everything. As you said in the snippet I quoted, you had some ideas f

Re: [Webware-devel] MiddleKit thoughts

2001-10-17 Thread Aaron Held
I'm a fan of a standard factory class pumping out simple objects representing the data. This way you can write the factory with your SQL optimized for the database in question, and have a standard API for interfacing with the system. Pretty much what middlekit is going for, but with Python and

Re: [Webware-devel] MiddleKit thoughts

2001-10-17 Thread Ian Bicking
Ian Bicking <[EMAIL PROTECTED]> wrote: > Anyway, that's where I am myself. There's other similar things to MK, > but most of them are lame dictionary interfaces (which capture the > easy 90% of the problem, but just make the other 10% of SQL queries > more awkward). I've looked at PyDO a little

Re: [Webware-devel] MiddleKit thoughts

2001-10-17 Thread Ian Bicking
Jack Moffitt <[EMAIL PROTECTED]> wrote: > MiddleKit seems to be very easy when you don't to worry about the > database details. But when you have a storage system already in place > and need the middle objects, it doesn't really help. Do you have to access that storage from different programs?

Re: [Webware-devel] MiddleKit thoughts

2001-10-17 Thread Chuck Esterbrook
At 07:39 PM 10/17/2001 -0600, Jack Moffitt wrote: >Has anyone put any brainpower towards this already that I can jump in >on? Chuck mentioned he had some ideas... what are they? :) I did? Er, I use MK for just about everything. Something interesting that one of the MK users brought up is that y

[Webware-devel] MiddleKit thoughts

2001-10-17 Thread Jack Moffitt
I'm starting to flesh out ideas for a new application, and so I was brushing up on the parts of Webware that I hadn't used last time (with vorbis.com). MiddleKit seems to be the biggest part I didn't play with. In the current ideas for the new application, I am thinking of LDAP as a backend (s

[Webware-devel] cvs update: new setting ClearPSPCacheOnStart

2001-10-17 Thread Geoff Talvola
I added a new Application.config setting "ClearPSPCacheOnStart" which defaults to 1. If you set it to 0, then it does NOT clear out the disk cache of compiled PSP servlets when you start up the appserver. This is useful for PSPs that take a long time to compile, especially if you are frequent

RE: [Webware-devel] cvs update

2001-10-17 Thread Jeff Johnson
> And as an added bonus, Jeff, I think it should also cause > your BitBucket > trick to work properly for exceptions, too. Try it out. Thanks Geoff, that fixed the noisy daemon mode for me :) ___ Webware-devel mailing list [EMAIL PROTECTED] https://

RE: [Webware-devel] print "." in ThreadedAppServer

2001-10-17 Thread Jeff Johnson
> OTOH, on another box where I have a daemon script, I put in this code > for shutdown: > > stop) > echo -n "Shutting down WebKit: " > kill -s 2 `cat $PID_FILE` > for SUBPID in `ps aux --cols 200 | grep > 'python Launch.py' | awk > '{print

RE: [Webware-devel] print "." in ThreadedAppServer

2001-10-17 Thread Ian Bicking
"Jeff Johnson" <[EMAIL PROTECTED]> wrote: > The print "." fixed the problem where the socket took 30 seconds to > after shutdown before the port could bind again. No load required, I > just start, stop, attempt restart which would fail with a socket bind > error. Not even in daemon mode. You're

[Webware-devel] servlet thread monitor

2001-10-17 Thread Jeff Johnson
Could webkit monitor the number of live servlet threads and if they die, create new threads? Is there a way to stop threads that are taking too long? Is there a way already to find out how many threads are healthy? -Jeff ___ Webware-devel mailing lis

RE: [Webware-devel] webware daemon worries

2001-10-17 Thread Jeff Johnson
> >> I read the code and I assume that > >> kill -9 `cat appserverpid.txt` > >> has the same effect as ./Appserver stop > >I wouldn't use the "-9", it won't clean up properly. > > What is the right signal? Just "kill [pid]", the default is to ask for a graceful shutdown. If that fails, then se

RE: [Webware-devel] print "." in ThreadedAppServer

2001-10-17 Thread Jeff Johnson
> Geoffrey Talvola <[EMAIL PROTECTED]> wrote: > > Or, it could be made a config setting, so we're covered when the > > same problem shows up on another OS. While we're at it, we ought to > > add a config setting to suck up stdout and stderr to avoid the > > _other_ FreeBSD problem Jeff reported.

Re: [Webware-devel] webware daemon worries

2001-10-17 Thread Ian Bicking
Just "kill `cat appserverpid.txt`". I think that default is TERM (15). "Aaron Held" <[EMAIL PROTECTED]> wrote: > >> I read the code and I assume that > >> kill -9 `cat appserverpid.txt` > >> has the same effect as ./Appserver stop > >I wouldn't use the "-9", it won't clean up properly. > > Wha

Re: [Webware-devel] print "." in ThreadedAppServer

2001-10-17 Thread Ian Bicking
Geoffrey Talvola <[EMAIL PROTECTED]> wrote: > Or, it could be made a config setting, so we're covered when the > same problem shows up on another OS. While we're at it, we ought to > add a config setting to suck up stdout and stderr to avoid the > _other_ FreeBSD problem Jeff reported. The possi

RE: [Webware-devel] webware daemon worries

2001-10-17 Thread Jeff Johnson
> I am using a work directory created by MakeAppWorkDir.py > > The appserverpd.txt is correctly written to my working directory > BUT > ./Appserver stop > looks for it only in the main Webware directory I reported this a while back, the code that determines which directory appserverpid.txt goes

Re: [Webware-devel] webware daemon worries

2001-10-17 Thread Aaron Held
And another thing I am using a work directory created by MakeAppWorkDir.py The appserverpd.txt is correctly written to my working directory BUT ./Appserver stop looks for it only in the main Webware directory I read the code and I assume that kill -9 `cat appserverpid.txt` has the same eff

Re: [Webware-devel] webware daemon worries

2001-10-17 Thread Aaron Held
I usually run my appserver (Enhydra) as mentioned, but I redirect to a file and then do a tail -f Appserver.log to watch the output. I'm running FreeBSD 4.4 RELEASE on my dev server so I though I'd try some things out. Right away I noticed that I am not seeing the output of any print statments

RE: [Webware-devel] print "." in ThreadedAppServer

2001-10-17 Thread Jeff Johnson
> On Wednesday October 17, 2001 06:04 am, Chuck Esterbrook wrote: > > In ThreadedAppServer, this little period is getting on my nerves: It was such a hack that I was surprised it made it into CVS (happy though). I would rather understand what is going on and fix the real problem but I ran out of

Re: [Webware-devel] webware daemon worries

2001-10-17 Thread Geoffrey Talvola
Jeff, I confirmed that this is a problem on my newly-installed Linux Mandrake 8.1 also. That is, if I start the appserver using ./AppServer daemon Then everything works fine until I close the "Konsole" window that I used to start Webware. After that point, I get failures like you mention, w

Re: [Webware-devel] print "." in ThreadedAppServer

2001-10-17 Thread Geoffrey Talvola
On Wednesday October 17, 2001 06:04 am, Chuck Esterbrook wrote: > In ThreadedAppServer, this little period is getting on my nerves: > > try: > # @@ This next print statement mysteriously fixes a shutdown >problem on > FreeBSD. > print "."

[Webware-devel] print "." in ThreadedAppServer

2001-10-17 Thread Chuck Esterbrook
In ThreadedAppServer, this little period is getting on my nerves: try: # @@ This next print statement mysteriously fixes a shutdown problem on FreeBSD. print "." conn.shutdown(1) conn