<?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: question about Activit Transactions  interfering with other transactions? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173790#M126920</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see you commented out the &amp;lt;tx:annotation-driven part. How do your services get hold of the transaction/connection? I don't see any interceptors in your context-file that do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a question, is there any reason why you don't use the same DB for activiti and your services? This would simplify the setup a lot and you'll have guaranteed sync of activiti's and your entities, without setting up XA-transations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Dec 2013 07:28:18 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2013-12-12T07:28:18Z</dc:date>
    <item>
      <title>question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173783#M126913</link>
      <description>Hi,I am new to Activiti and am writing a simple scenario where I create a service task. This service task&amp;nbsp; calls a delegate which is turn calls another service which interacts with database. I want my service to be a black box to activiti. All I need is that it calls the service and prints out the o</description>
      <pubDate>Fri, 06 Dec 2013 21:12:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173783#M126913</guid>
      <dc:creator>aruna</dc:creator>
      <dc:date>2013-12-06T21:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173784#M126914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Aruna, you can change database configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" &amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="driverClassName" value="" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="url" value="" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="username" value="" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="password" value="" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="defaultAutoCommit" value="false" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/bean&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Dec 2013 15:26:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173784#M126914</guid>
      <dc:creator>raviraj</dc:creator>
      <dc:date>2013-12-08T15:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173785#M126915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is my database configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;!– Begin Activiti Setup –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="dataSource"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; class="org.springframework.jdbc.datasource.SimpleDriverDataSource"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="driverClass" value="org.h2.Driver" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="url" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="username" value="sa" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="password" value="sa" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="transactionManager"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; class="org.springframework.jdbc.datasource.DataSourceTransactionManager"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="deploymentResources"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– &amp;lt;value&amp;gt;classpath&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rder-management.bpmn &amp;lt;/value&amp;gt; –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;classpath&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rder-management.bpmn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="repositoryService" factory-bean="processEngine"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; factory-method="getRepositoryService" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="runtimeService" factory-bean="processEngine"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; factory-method="getRuntimeService" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="taskService" factory-bean="processEngine"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; factory-method="getTaskService" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="historyService" factory-bean="processEngine"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; factory-method="getHistoryService" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="managementService" factory-bean="processEngine"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; factory-method="getManagementService" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;!– End Activiti Setup –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;!– Business Process Implementation –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="businessProcessService"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; class="com.efx.pet.service.business_process.ActivitiBusinessProcessService"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="activitiProcessEngine" ref="processEngine" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2013 13:30:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173785#M126915</guid>
      <dc:creator>aruna</dc:creator>
      <dc:date>2013-12-09T13:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173786#M126916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you use different databases, you SHOULD use JTA with XA-transactions. if you don't, the transactions won't be synchronized.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your case, you call your services from within activiti. When activiti executes the process, it creates a new (activiti) transaction. The process reaches the user-task and does a service-call to your code. This service-call creates a new transaction, does the call, closes the transaction/session and returns the entity to activiti. Activiti uses the objects and uses some fields which are marked as lazy-loaded. Since your service-call-transaction is closed, the missing referenced entities cannot be fetched and you get an exeption.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To fix this, you can either:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 1) Use XA-transactions IF writes to your service should be in-sync with writes to activiti&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; 2) If you only read your own service-DB, you should make sure your service returned fully usable objects (with all needed referenced entities eagerly fetched before the method returns the result).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 12:44:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173786#M126916</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-10T12:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173787#M126917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Fredrik. You basically got the crux of my problem except for one small difference. The problem is not happening when I am trying to access the object in Activiti. The problem is actually occurring within my service call itself. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I asked the question was because this same method works fine when I call it from a JUNIT without using Activiti, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Like I mentioned if i was calling&amp;nbsp; my service from a JUNIT the same method is working fine but when I am making&amp;nbsp; the call to service from Activity, I get a Lazy loading exception IN MY service. So is there a possibility that the transaction that is created by Activity , is interfering with the transactions of my service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2013 16:05:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173787#M126917</guid>
      <dc:creator>aruna</dc:creator>
      <dc:date>2013-12-10T16:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173788#M126918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you're NOT using the same database and NOT using the same transaction-manager, that seems very unlikely that it's the Activiti transaction that is causing this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do you" wire" in your services in the activiti-service task?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 09:41:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173788#M126918</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-11T09:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173789#M126919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The OrderManagementDelegate calls my Service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The service task uses Expression to call out the&amp;nbsp; method in the Delegate:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#{orderManagementDelegate.checkout(execution)}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is what I have in context.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="driverClassName" value="org.h2.Driver" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="url" value="jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="username" value="sa" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="password" value="sa" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="transactionManager"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; class="org.springframework.jdbc.datasource.DataSourceTransactionManager"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="deploymentResources"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– &amp;lt;value&amp;gt;classpath&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rder-management.bpmn &amp;lt;/value&amp;gt; –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;classpath&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rder-management.bpmn&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/value&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="processEngineConfiguration" ref="processEngineConfiguration" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="repositoryService" factory-bean="processEngine"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; factory-method="getRepositoryService" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="runtimeService" factory-bean="processEngine"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; factory-method="getRuntimeService" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="taskService" factory-bean="processEngine"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; factory-method="getTaskService" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="historyService" factory-bean="processEngine"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; factory-method="getHistoryService" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="managementService" factory-bean="processEngine"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; factory-method="getManagementService" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;!– End Activiti Setup –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;!– Business Process Implementation –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="businessProcessService"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; class="com.efx.pet.service.business_process.ActivitiBusinessProcessService"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;property name="activitiProcessEngine" ref="processEngine" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;!– &amp;lt;tx:annotation-driven transaction-manager="transactionManager"/&amp;gt; –&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="orderManagementService"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; class="com.efx.pet.service.ordermanagement.impl.OrderManagementServiceImpl"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; init-method="onInit" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &amp;lt;bean id="orderManagementDelegate"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; class="com.efx.pet.service.business_process.delegate.OrderManagementDelegate" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2013 14:06:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173789#M126919</guid>
      <dc:creator>aruna</dc:creator>
      <dc:date>2013-12-11T14:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173790#M126920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see you commented out the &amp;lt;tx:annotation-driven part. How do your services get hold of the transaction/connection? I don't see any interceptors in your context-file that do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a question, is there any reason why you don't use the same DB for activiti and your services? This would simplify the setup a lot and you'll have guaranteed sync of activiti's and your entities, without setting up XA-transations.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 07:28:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173790#M126920</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-12T07:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173791#M126921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are using activity as a workflow engine and for what I am doing I don't want it to rollback the entire transaction if it fails in the service I am calling. Also we are using a thirdparty in our services which maintains its own transactions and the way they are dealing with it is different. Also the entities that are used in Activity are not the same as what we use in the service. We pass XMLBeans among services and then service maps it to the entities (and back to XMLbeans) as and when required. Hence Activity has no idea of what the entities are in the service. That is why I mentioned that I need the service being called in Activity as a blackbox. &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Dec 2013 15:19:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173791#M126921</guid>
      <dc:creator>aruna</dc:creator>
      <dc:date>2013-12-12T15:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173792#M126922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, makes sense. My previous question was cut off due to XML-tag usage inline, i suppose.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again: I see you have commented out the tx:annotation-driven… How are the transactions in YOUR services started/closed/controlled, if they are not annotation-driven?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 08:19:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173792#M126922</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-13T08:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173793#M126923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes they are annotation driven. and they are all managed within broadleaf, an open source order management system that my services uses.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2013 15:25:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173793#M126923</guid>
      <dc:creator>aruna</dc:creator>
      <dc:date>2013-12-13T15:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173794#M126924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, but why is that piece of the XML commented out? This way, transactions aren't hooked up in the services you use…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 07:21:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173794#M126924</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-16T07:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173795#M126925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't want to pass any transactions from activity to my services. As I mentioned my service should be a black box to Activity. You can assume that my service just returns a String back to Activity. What happens within my services should not matter to activity.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 18:55:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173795#M126925</guid>
      <dc:creator>aruna</dc:creator>
      <dc:date>2013-12-16T18:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173796#M126926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Aruna, If I should consider it as a black box, why are you asking questions about transactions IN your services? I just want to help you and figure out how your services get THEIR transactions wired in, regardless of actviti's transactions… If the black box doesn't work as it should, it's either not configured the way it should or using the wrong transaction-manager. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 08:48:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173796#M126926</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-17T08:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173797#M126927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The reason I was asking was because the service works fine when I call it from a Junit test but when I started calling it from Activiti I started getting the exception I mentioned in my post. I was wondering if somehow Activit's transaction was interfering with my service. Since I don't know the internals of Activiti I thought I would ask to see if that was possible. From what I understand, Activiti would open a connection and then call my service, but my service will create its own connections and transactions, but could the open connection/transaction of Activity cause any problems?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2013 15:37:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173797#M126927</guid>
      <dc:creator>aruna</dc:creator>
      <dc:date>2013-12-17T15:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173798#M126928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If activiti uses TransactionManager 1 and your services use TransactionManager 2, there is NO way of activiti interfering with the service-transactions. However, in your examples, I don't see how the transactions for your black-box services are configured. Make sure the use a different transaction-manager for the behaviour you're trying to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the JUnit-test works, you should just take that spring-context and throw in the activiti-beans and it should continue to work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 08:34:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173798#M126928</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-12-18T08:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: question about Activit Transactions  interfering with other transactions?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173799#M126929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For me, the problem only ceased to exist after i injected the entity manager into the jpaEntityManagerFactory property, but maybe that is just because i am configuring the spring boot way in code (everything else is pretty standard spring boot default setup - transaction management should be set up in boot by default, if i read the documentation correctly, but it did not work for me in version 5.20.0).&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;@Bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; SpringProcessEngineConfiguration processEngineConfiguration(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; EntityManagerFactory entityManagerFactory,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Environment env, DataSource dataSource,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; PlatformTransactionManager transactionManager, CustomGroupManagerFactory groupManagerFactory, CustomUserManagerFactory userManagerFactory) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; SpringProcessEngineConfiguration config = new SpringProcessEngineConfiguration();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; config.setTransactionManager(transactionManager);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; config.setDataSource(dataSource);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; config.setDatabaseSchemaUpdate("true");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; config.setJobExecutorActivate(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //enable transaction integration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; config.setJpaEntityManagerFactory(entityManagerFactory);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; config.setJpaHandleTransaction(true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //config.setTransactionsExternallyManaged(true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; config.setDeploymentResources(new Resource[] {new ClassPathResource("/processes/myprocess.bpmn20.xml")});&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; config.setCustomSessionFactories(Arrays.asList(userManagerFactory, groupManagerFactory));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; if(Arrays.asList(env.getActiveProfiles()).contains("development") &amp;amp;&amp;amp; devMailServerActive){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; config.setMailServerPort(devMailServerPort);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; else if(mailServerPort&amp;gt;0){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; config.setMailServerPort(mailServerPort);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; return config;&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 14:45:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/question-about-activit-transactions-interfering-with-other/m-p/173799#M126929</guid>
      <dc:creator>amenting</dc:creator>
      <dc:date>2016-04-26T14:45:55Z</dc:date>
    </item>
  </channel>
</rss>

