Thanks you for the replies! I will try it at the module level and see what happens!
thanks, Brian --On Thursday, January 17, 2002 02:15:53 PM -0800 Tavis Rudd <[EMAIL PROTECTED]> wrote: > On Thursday 17 January 2002 12:48, Mike Orr wrote: >> On Thu, Jan 17, 2002 at 02:33:52PM -0500, Geoffrey Talvola wrote: >> > The usual suggestion when you want a "singleton" object that is >> > shared across all servlet instances is to just store it in a >> > global variable at module level. You can either put this >> > variable directly into the module that contains your servlet, or >> > if you want to share it across multiple servlets you can put it >> > into a separate module. >> >> But if it's something that must be persistent and should not be >> recreated, how do you guarantee the module won't be reloaded by >> some other part of Webware? Somebody yesterday asked a similar >> question. > > As far as I know, the only way for a module to actually be 'reloaded' > is with the 'reload' function. After the first import subsequent > imports just retrieve the module from sys.modules. If you use your > own module you can be fairly certain that WebKit won't reload it. > > _______________________________________________ > Webware-discuss mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/webware-discuss _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
