Caching of InitialContext with multiple users
Hi.
I have some webservices (running on Axis on a weblogic 8.1 server) which is called from muliple users, who will use a limited set of usernames/passwords (many users will use the same username and password).
Because of some performance issues I want to cache the initialcontext after it is created the first time (so that I don't have to call getAccess and authenticate the user every time).
I have no problem with this as long as only one user belonging to a group calls the method at the same time, but when two or more users calls the webservice at the same time, using the same username and password, the weblogic.security.Security.getCurrentSubject returnes a subject without any principals for the second user (the first user gets a subject with the correct principals)
Does anyone know how I can fix this?

