<?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 JavaDelegate - New instance per call? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javadelegate-new-instance-per-call/m-p/99566#M68836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are the JavaDelegates and ActivityBehaviors reused or is a new instance created for each call?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It might happen that they are called from different job executor threads. Are they thread safe? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there anything to keep in mind especially when working with ActivityExecution inside of ann Activity Behavior?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you in advance&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Mar 2012 07:34:27 GMT</pubDate>
    <dc:creator>kaech</dc:creator>
    <dc:date>2012-03-10T07:34:27Z</dc:date>
    <item>
      <title>JavaDelegate - New instance per call?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javadelegate-new-instance-per-call/m-p/99566#M68836</link>
      <description>Are the JavaDelegates and ActivityBehaviors reused or is a new instance created for each call?It might happen that they are called from different job executor threads. Are they thread safe? Is there anything to keep in mind especially when working with ActivityExecution inside of ann Activity Behavi</description>
      <pubDate>Sat, 10 Mar 2012 07:34:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javadelegate-new-instance-per-call/m-p/99566#M68836</guid>
      <dc:creator>kaech</dc:creator>
      <dc:date>2012-03-10T07:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: JavaDelegate - New instance per call?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javadelegate-new-instance-per-call/m-p/99567#M68837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;AFAIK these delegate classes are not thread safe. They are instantiated only once, and then used with no thread safe mechanism (this is up to the class implementation)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2012 05:59:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javadelegate-new-instance-per-call/m-p/99567#M68837</guid>
      <dc:creator>roig</dc:creator>
      <dc:date>2012-03-11T05:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: JavaDelegate - New instance per call?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javadelegate-new-instance-per-call/m-p/99568#M68838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi roig&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JavaDelegate and ActivityBehavior instances are static by design. They are not threadsafe.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C.f: user manual: &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#bpmnJavaServiceTask" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#bpmnJavaServiceTask&lt;/A&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Note: there will be only one instance of that Java class created for the serviceTask it is defined on. All process-instances share the same class instance that will be used to call execute(DelegateExecution). This means that the class must not use any member variables and must be thread-safe, since it can be executed simultaneously from different threads. This also influences the way Field injection is handled.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2012 14:17:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javadelegate-new-instance-per-call/m-p/99568#M68838</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2012-03-11T14:17:52Z</dc:date>
    </item>
  </channel>
</rss>

