Yes.. WW just uses the classloader of the Web app, it doesn't do any funky class loading, so Singletons should work the same as they do in any web app (i.e. it's a singleton for your web app, but not necessarily across web apps)
> -----Original Message----- > From: James Pan [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 14, 2003 2:32 PM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] Singletons within WW > > > Hello, > > Suppose I have a singleton called MyClass which is retrieved > through a call to ConnectionPool.getSharedInstance(). Suppose > in an action I make a call to > ConnectionPool.getSharedInstance() somewhere. > > I understand that an action is always created new each time a > request is made, but what about the other classes available? > Does ConnectionPool remain alive, such that it's only created > once for the entire duration of the session, and that it can > be shared by other processes (i.e. other sessions)? > > Cheers, > > James > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites > including Data Reports, E-commerce, Portals, and Forums are > available now. Download today and enter to win an XBOX or > Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet _072303_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01 _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
