Indeed I am using several threads in my app. I am using the Alfresco Remote APIs - should I start a new session for every separate thread? I did not yet understand what happens if I use AuthenticationUtils - can I get the authenticationdetails via that class for different threads? - I guess no.
You could either : 1 - start new session for for every separate thread. 2 - store authenticationDetails in the user's session, and use it to call the webservice (the code i provided in previous post). 3 - Modify AuthenticationUtils to store authenticationDetails in session instead of ThreadLocal, rebuild the SDK.
but that depends, are you using the remote API on a web application or a standalone one ?
Thank you very much! Caching the AuthenticationDetails and setting them just again using AuthenticationUtils.setAuthenticationDetails from the other thread helped.