If I have a Public static class in a WiseJ application – does it create a copy for each user session ?
Or will it just create the single class object and share it for all “sessions” – I believe WiseJ does not use sessions in the tradition ASP sense, correct ?
Its a class I have for a light weight logger based on Log4Net – but stripped down. I started getting errors in WiseJ with more users added stating the the log file is locked by another process.
Wisej doesn’t create the classes or manage the code. That’s part of the .NET framework. In .NET statics are unique within an app domain.
Web sessions don’t exist in .NET. A session in any web technology (php, jsp, aspnet, etc) is just an instance of an object identified by an id stored in the browser. If you use the same object in multiple threads you should synchronize it, especially if it uses external resources like a file or a database connection.
Please login first to submit.