On Tuesday 25 March 2003 16:03, you wrote: > > I'd be very interested in hearing more about how you (or anyone else) use > XOTcl with AOLserver. Can you describe how XOTcl's dynamic object & > classes work in the context of AOLserver's MT pool of interpreters and > what, if any, per-connection clean-up (like Tcl globals) occurs? I'm > trying to wrap my head around all of this... > > Michael
Hi ! What we do is declare a bunch of XOTcl Class'es at the server startup. Using the XOTcl introspective methods, we then re-create those for each connection/nscp/thread interp. This is the done in one additional step while taking startup interp blueprint, but is really transparent for the user. Objects are created as needed and garbage-collected either automatically (if created with -volatile option) or manually. Since XOTcl encapsulates all under xotcl:: namespace, the global cleanup does no harm to it. Until 4.0, XOTcl needed a ns-core patch (deep reasons). With 4.0 and newer, it does not need any core modifications. Also until 4.0, dynbamic nature of XOTcl was impaired with the inability of AOLserver to make run-time changes to the startup machinery. With 4.0, you can redefine Class/Object definitions on the fly and make them permanent for all other threads. This is quite powerful but also dangerous. I'd be happy to answer any other specific questions you have. The above was first what popped up in my mind. Cheers, Zoran -- AOLserver - http://www.aolserver.com/ To Remove yourself from this list: http://www.aolserver.com/listserv.html List information and options: http://listserv.aol.com/
