AnsweredAssumed Answered

Problem with getting ticket and ThreadLocal

Question asked by karkaletsis on Jul 5, 2007
Latest reply on Feb 13, 2008 by sacco
I use web services API from liferay to browse the alfresco content. I first login (start session) and then I use the practice you propose with the callback handler. The problem is that threadlocal class that keeps the authentication variables is being overrided in every new login of alfresco. So this is a serious proble.

It seems to me that threadlocal not works as it suppose, or every request is the same thread.

Any help on this strange issue.

Piece of code:

public class AuthenticationUtils implements CallbackHandler
private static ThreadLocal<AuthenticationDetails> authenticationDetails = new ThreadLocal<AuthenticationDetails>();