David O'Meara wrote:what would be best is that the application watches the XML file and reloads it on its own, if that is what the application requires.
you could add the file to the context watch list, but when that sees a change it would redeploy (and reload) the file but bouncing the context may not be the most elegant solution.
Duc Vo wrote:Alright, do you use static variables anywhere in the class MyClass?
How did you pass parameters to myObj? particularly the getMyMap() method? Your sample code doesn't show how that method provides you different Map objects for different users.
Is this a real code or just an abstract code?
Duc Vo wrote:Lol, that's funny. You didn't have any problem with your original code in term of accessing the session scope. Two things:
1. How did you create the myObj object? Is it a new instance everytime a user logs in? Or is it created when the application starts?
2. How did you test the two sessions scenario? From 2 browser windows on the same machine or from two different machines?