Hi.
I have exposed some methods as webservices. To authenticate the user I create an initialcontext, then perform a lookup to another EJB, and call some existing functionality.
Because the call towards getAccess is quite time consuming, I want to cache the information I get back, so that the next time the same user calls the webservice, I can get the cached version without going into getAccess.
Does anyone know how I should do this? I have tried caching the InitialContext, but then the principals that belongs to the user is lost the second time I call the webservice, and I use the cached version of the initialContext.
Does anyone know a way to cache some information, so that I don't have to call getAccess?
Any help is appreciated.
-Espen
I have exposed some methods as webservices. To authenticate the user I create an initialcontext, then perform a lookup to another EJB, and call some existing functionality.
Because the call towards getAccess is quite time consuming, I want to cache the information I get back, so that the next time the same user calls the webservice, I can get the cached version without going into getAccess.
Does anyone know how I should do this? I have tried caching the InitialContext, but then the principals that belongs to the user is lost the second time I call the webservice, and I use the cached version of the initialContext.
Does anyone know a way to cache some information, so that I don't have to call getAccess?
Any help is appreciated.
-Espen