×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Caching of userinformation and principals

Caching of userinformation and principals

Caching of userinformation and principals

(OP)
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

RE: Caching of userinformation and principals

Are you running a cluster of servers ?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
http://www.primrose.org.uk

RE: Caching of userinformation and principals

(OP)
Right now I'm not running a cluster of servers, but when this goes into production it will run on a cluster of servers

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close