<?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: Activiti using two connections per thread in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183867#M136997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, that's what could be happening. Okay, so far, so good. Of course I will not use only one connection, I just thought the deadlock while the tasks where running could be the same as the one in startup, but as @jbarrez said, it is not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Still, If I the thread number is higher or equal to the max connection pool size, I get a deadlock. That doesn't make sense at all, that's okay to get a bottleneck, but, if I do not set the max lifetime of a connection, the application freezes and never come back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to limit the tasks execution to the same number of connections in the pool? Because I will start processes from HTTP and from JMS, so, I cannot limit in the input. For example, If I have 30 connections, I want to limit Activiti to execute only 29 tasks in parallel, because I don't want to get borrow&amp;nbsp; timeouts all the time, like we are getting right now if the number of tasks running is higher than the connection pool size.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jan 2015 14:03:23 GMT</pubDate>
    <dc:creator>gabrielfrancisc</dc:creator>
    <dc:date>2015-01-16T14:03:23Z</dc:date>
    <item>
      <title>Activiti using two connections per thread</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183864#M136994</link>
      <description>Hello! I'm having an issue. I'm trying to use Activiti + Camel, using Spring 4, and, I noticed a problem: Sometimes, all connections from pool get locked and never come back, only if I define a borrow timeout it "works", but I got a lot of timeouts when running on multi-thread. I was wondering if it</description>
      <pubDate>Wed, 14 Jan 2015 14:16:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183864#M136994</guid>
      <dc:creator>gabrielfrancisc</dc:creator>
      <dc:date>2015-01-14T14:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti using two connections per thread</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183865#M136995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What is the size of your connection pool?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have long running service tasks that don't free up connections?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:02:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183865#M136995</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-01-16T12:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti using two connections per thread</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183866#M136996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You need at least two connections, since the engine will use a new transaction to fetch database id's when the pool of reserved id's hjas been used up. Alternatively, you could use the UUID generator, which doesn't need that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 12:06:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183866#M136996</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-01-16T12:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti using two connections per thread</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183867#M136997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So, that's what could be happening. Okay, so far, so good. Of course I will not use only one connection, I just thought the deadlock while the tasks where running could be the same as the one in startup, but as @jbarrez said, it is not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Still, If I the thread number is higher or equal to the max connection pool size, I get a deadlock. That doesn't make sense at all, that's okay to get a bottleneck, but, if I do not set the max lifetime of a connection, the application freezes and never come back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to limit the tasks execution to the same number of connections in the pool? Because I will start processes from HTTP and from JMS, so, I cannot limit in the input. For example, If I have 30 connections, I want to limit Activiti to execute only 29 tasks in parallel, because I don't want to get borrow&amp;nbsp; timeouts all the time, like we are getting right now if the number of tasks running is higher than the connection pool size.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 14:03:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183867#M136997</guid>
      <dc:creator>gabrielfrancisc</dc:creator>
      <dc:date>2015-01-16T14:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti using two connections per thread</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183868#M136998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oh, and I'm not using any connection in the tasks. Actually, I'm not using even the transactional context, just making REST calls with camel.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 14:42:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183868#M136998</guid>
      <dc:creator>gabrielfrancisc</dc:creator>
      <dc:date>2015-01-16T14:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti using two connections per thread</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183869#M136999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The amount of threads should not matter for your connection pool, that's why you want a connection pool in the first place …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you try changing the connection pool framework? Using Tomcat jdbc pool / c3p0 ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 15:10:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183869#M136999</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-01-16T15:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti using two connections per thread</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183870#M137000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did. Right now I'm using dbcp2, but I also tried to use dbcp (1.x), c3p0 and BoneCP. Same behavior. I don't think it is the connection pool framework, but, anyway, is there any other framework that I could try?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 15:27:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183870#M137000</guid>
      <dc:creator>gabrielfrancisc</dc:creator>
      <dc:date>2015-01-16T15:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti using two connections per thread</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183871#M137001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just used Tomcat JDBC Pool and HikariCP:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Tomcat JDBC Pool hangs too, but, after few minutes everything come back to normal, but, I'm not sure it is a solution. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- HikariCP has the same behavior of the others, all the threads hanged util forever.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought maybe it was my Spring version, because I'm using Spring 4.1 and Activiti 5.16.4 uses 4.0.6, so, tried to downgrade, but nothing changed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any issue with Activiti 5.16.4 running on Java 8? If there is, so that could be the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, here it is my configuration. Is there anything that I've forgotten?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Configuration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@PropertySource("classpath:activiti-db.properties")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@EnableTransactionManagement&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class ActivitiContext {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Inject&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private ApplicationContext applicationContext;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Inject&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; private ActivitiDataSourceInformation activitiDataSourceInformation;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ProcessEngineFactoryBean processEngine(ProcessEngineConfigurationImpl processEngineConfiguration) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngineFactoryBean factoryBean = new ProcessEngineFactoryBean();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; factoryBean.setProcessEngineConfiguration(processEngineConfiguration);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; factoryBean.setApplicationContext(applicationContext);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return factoryBean;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ProcessEngineConfigurationImpl processEngineConfiguration() throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SpringProcessEngineConfiguration configuration = new SpringProcessEngineConfiguration();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configuration.setDataSource(dataSource());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configuration.setTransactionManager(transactionManager());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configuration.setActivityBehaviorFactory(new SpringActivitiCamelBehaviorFactory(applicationContext));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configuration.setDeploymentResources(new ClassPathResource[]{new ClassPathResource("flows/charge/")});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configuration.setDatabaseSchemaUpdate("true");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return configuration;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public PlatformTransactionManager transactionManager() throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return new DataSourceTransactionManager(dataSource());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Bean(destroyMethod = "close")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public DataSource dataSource() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BasicDataSource dataSource = new BasicDataSource();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataSource.setUsername(activitiDataSourceInformation.getUsername());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataSource.setPassword(activitiDataSourceInformation.getPassword());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataSource.setUrl(activitiDataSourceInformation.getUrl());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataSource.setDriverClassName(activitiDataSourceInformation.getDriver());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataSource.setMaxTotal(activitiDataSourceInformation.getMaxConnections());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataSource.setMinIdle(activitiDataSourceInformation.getMinConnectionsIdle());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataSource.setMaxWaitMillis(activitiDataSourceInformation.getMaxWait());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataSource.setMaxConnLifetimeMillis(activitiDataSourceInformation.getMaxConnectionLifetime());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dataSource.setMaxIdle(activitiDataSourceInformation.getMaxIdle());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return dataSource;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public RuntimeService runtimeService(ProcessEngine processEngine) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return processEngine.getRuntimeService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public RepositoryService repositoryService(ProcessEngine processEngine) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return processEngine.getRepositoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public ManagementService managementService(ProcessEngine processEngine) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return processEngine.getManagementService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public HistoryService historyService(ProcessEngine processEngine) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return processEngine.getHistoryService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public TaskService taskService(ProcessEngine processEngine) throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return processEngine.getTaskService();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jan 2015 17:59:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183871#M137001</guid>
      <dc:creator>gabrielfrancisc</dc:creator>
      <dc:date>2015-01-16T17:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti using two connections per thread</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183872#M137002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; Is there any issue with Activiti 5.16.4 running on Java 8? If there is, so that could be the problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No. I also run on JDK 8.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you wrap that config up with a simple unit test that demonstrates the issue? I dont see anything wrong straight away. Maybe a check query if the connection is still valid? But that shouldn't be needed …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 12:57:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183872#M137002</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-01-21T12:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti using two connections per thread</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183873#M137003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for the delay, the project that will use Activiti here in my company was postponed and only now I started to work with it again.&amp;nbsp; I couldn't reproduce the problem in a unit test, but I'll try to do it later. I noticed that the threads blocked were waiting for the org.activiti.engine.impl.db.DbIdGenerator.getNextId() method to return, so, I tried to use StrongUuidGenerator instead of&amp;nbsp; the DbIdGenerator and the problem is gone. I still don't know why, I think maybe it is some issue running with the activiti-camel lib (maybe that's why i couldn't reproduce the problem in a unit test just using activiti),but, for now I will use the StrongUuidGenerator and run some tests. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 16:58:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183873#M137003</guid>
      <dc:creator>gabrielfrancisc</dc:creator>
      <dc:date>2015-03-13T16:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti using two connections per thread</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183874#M137004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The DbIdGenerator does use a new transaction to fetch ids. But it should do that not very often (given not very high load).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 09:32:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-using-two-connections-per-thread/m-p/183874#M137004</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-03-17T09:32:24Z</dc:date>
    </item>
  </channel>
</rss>

