Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Caching of user information

Status
Not open for further replies.

espenf

Programmer
Joined
Mar 5, 2007
Messages
3
Location
NO
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.

Any help is appreciated.

-Espen
 
You should ask this in the J2EE forum.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top