<?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 Re: A.E: race conditions because no synchronization possible? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/a-e-race-conditions-because-no-synchronization-possible/m-p/136881#M96002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That makes sense… if we add "load-on-statup" parameter in web.xml, the web-application-context will be initialize when he container starts so the servlet init will be called once before the servlet actually starts serving.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The load-on-startup element indicates that this servlet should be loaded (instantiated and have its init() called) on the startup of the web application. The optional contents of these element must be an integer indicating the order in which the servlet should be loaded. If the value is a negative integer, or the element is not present, the container is free to load the servlet whenever it chooses. If the value is a positive 128 integer or 0, the container must load and initialize the servlet as the application is deployed. The container must guarantee that servlets marked with lower integers are loaded before servlets marked with higher integers. The container may choose the order of loading of servlets with the same load-on-start-up value.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I imagine the most containers to have a mechanism that prevents the init() to be called twice for the same servlet (when multiple incoming HTTP-calls are done to it when not yet initialized). This is a servlet-specific issue and is independent of the way we handle the thread-local storage of the ExplorerApplication.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Feb 2013 08:51:00 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-02-18T08:51:00Z</dc:date>
    <item>
      <title>A.E: race conditions because no synchronization possible?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-e-race-conditions-because-no-synchronization-possible/m-p/136880#M96001</link>
      <description>Hi everybody, i look at org.activiti.explorer.ExplorerApp classpublic class ExplorerApp extends Application implements HttpServletRequestListener {&amp;nbsp; &amp;nbsp; private static final long serialVersionUID = -1L;&amp;nbsp; // Thread local storage of instance for each user&amp;nbsp; protected static ThreadLocal&amp;lt;ExplorerApp&amp;gt;</description>
      <pubDate>Sun, 17 Feb 2013 12:51:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-e-race-conditions-because-no-synchronization-possible/m-p/136880#M96001</guid>
      <dc:creator>udoderk</dc:creator>
      <dc:date>2013-02-17T12:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: A.E: race conditions because no synchronization possible?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-e-race-conditions-because-no-synchronization-possible/m-p/136881#M96002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That makes sense… if we add "load-on-statup" parameter in web.xml, the web-application-context will be initialize when he container starts so the servlet init will be called once before the servlet actually starts serving.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The load-on-startup element indicates that this servlet should be loaded (instantiated and have its init() called) on the startup of the web application. The optional contents of these element must be an integer indicating the order in which the servlet should be loaded. If the value is a negative integer, or the element is not present, the container is free to load the servlet whenever it chooses. If the value is a positive 128 integer or 0, the container must load and initialize the servlet as the application is deployed. The container must guarantee that servlets marked with lower integers are loaded before servlets marked with higher integers. The container may choose the order of loading of servlets with the same load-on-start-up value.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I imagine the most containers to have a mechanism that prevents the init() to be called twice for the same servlet (when multiple incoming HTTP-calls are done to it when not yet initialized). This is a servlet-specific issue and is independent of the way we handle the thread-local storage of the ExplorerApplication.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 08:51:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-e-race-conditions-because-no-synchronization-possible/m-p/136881#M96002</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-18T08:51:00Z</dc:date>
    </item>
  </channel>
</rss>

