<?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 Concurrency Problem in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/concurrency-problem/m-p/159948#M113968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm doing a proof of concept to see if we use Activiti in my company, I use version 5.14 integrated with Spring, Hibernate (with mysql) and Maven.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have problems to managing concurrency, when I try obtain a processInstance using the next method: RuntimeService.startProcessInstanceByKey(…)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is fixed if I make "syncronized" that part of the code. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it the best way to handle concurrency? is possible to use threads? How could I handle it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 17:50:08 GMT</pubDate>
    <dc:creator>jwalink</dc:creator>
    <dc:date>2014-01-16T17:50:08Z</dc:date>
    <item>
      <title>Concurrency Problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/concurrency-problem/m-p/159948#M113968</link>
      <description>Hi all,I'm doing a proof of concept to see if we use Activiti in my company, I use version 5.14 integrated with Spring, Hibernate (with mysql) and Maven.I have problems to managing concurrency, when I try obtain a processInstance using the next method: RuntimeService.startProcessInstanceByKey(…)The</description>
      <pubDate>Thu, 16 Jan 2014 17:50:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/concurrency-problem/m-p/159948#M113968</guid>
      <dc:creator>jwalink</dc:creator>
      <dc:date>2014-01-16T17:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Concurrency Problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/concurrency-problem/m-p/159949#M113969</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;Could you create jUnit test for it please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Template: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/sticky-how-write-unit-test" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/sticky-how-write-unit-test&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 19:51:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/concurrency-problem/m-p/159949#M113969</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-01-16T19:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Concurrency Problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/concurrency-problem/m-p/159950#M113970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is actually the problem? Multiple threads can call the startProcessByXXX(..) simultaneously without any issue. They will all start a separate process-instance. Do you want to limit the amount of process-instances started for a process-definition?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 08:01:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/concurrency-problem/m-p/159950#M113970</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-17T08:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Concurrency Problem</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/concurrency-problem/m-p/159951#M113971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My problem happened because the number of database connections was less than the number of threads opened to execute RuntimeService.startProcessInstanceByKey(…).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 15:28:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/concurrency-problem/m-p/159951#M113971</guid>
      <dc:creator>jwalink</dc:creator>
      <dc:date>2014-01-21T15:28:06Z</dc:date>
    </item>
  </channel>
</rss>

