<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Thread implications of IdentityService.setAuthenticatedUser in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/thread-implications-of-identityservice-setauthenticateduser/m-p/67881#M43425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been looking at IdentityService.setAuthenticatedUserId(String) for the first time and wonder how this is intended to be used in a multi-threaded environment? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;AFAIK the ProcessEngine is a singleton that returns instances of the various services. Are these instances also singletons? I guess not since using this method would then have side-effects on the other thread(s). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So as long as each thread creates its own identity service all will be well? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for clarifying &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2011 13:32:49 GMT</pubDate>
    <dc:creator>tstephen</dc:creator>
    <dc:date>2011-07-27T13:32:49Z</dc:date>
    <item>
      <title>Thread implications of IdentityService.setAuthenticatedUser</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/thread-implications-of-identityservice-setauthenticateduser/m-p/67881#M43425</link>
      <description>Hi, I've been looking at IdentityService.setAuthenticatedUserId(String) for the first time and wonder how this is intended to be used in a multi-threaded environment? AFAIK the ProcessEngine is a singleton that returns instances of the various services. Are these instances also singletons? I guess n</description>
      <pubDate>Wed, 27 Jul 2011 13:32:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/thread-implications-of-identityservice-setauthenticateduser/m-p/67881#M43425</guid>
      <dc:creator>tstephen</dc:creator>
      <dc:date>2011-07-27T13:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Thread implications of IdentityService.setAuthenticatedUser</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/thread-implications-of-identityservice-setauthenticateduser/m-p/67882#M43426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The services are singleton.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The setAuthenticatedUser is using a Threadlocal, which is exactly why it works in a multi threaded environment.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Aug 2011 12:12:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/thread-implications-of-identityservice-setauthenticateduser/m-p/67882#M43426</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-08-05T12:12:22Z</dc:date>
    </item>
  </channel>
</rss>

