<?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 DataSourceTransactionManager or JTATransactionManager in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/datasourcetransactionmanager-or-jtatransactionmanager/m-p/151730#M106449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have 3 applications using same activiti datasource. Each App doing different things though&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1st App - Reads JMS and triggers workflows&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2nd App - Continues Async WorkFlows&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3rd App - REST API&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently using datasourcetransactionmanager.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager"&amp;gt;&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;nbsp; &amp;lt;/bean&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;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt;&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;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I guess in this case Spring creates 3 transaction Managers but the Connection pool is the same.&amp;nbsp; Wondering If I should use jtaTransactionManager and leave it to the App server so that single transaction manager takes care of all transactions. Suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 Feb 2014 07:29:24 GMT</pubDate>
    <dc:creator>rangoo</dc:creator>
    <dc:date>2014-02-08T07:29:24Z</dc:date>
    <item>
      <title>DataSourceTransactionManager or JTATransactionManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/datasourcetransactionmanager-or-jtatransactionmanager/m-p/151730#M106449</link>
      <description>I have 3 applications using same activiti datasource. Each App doing different things though1st App - Reads JMS and triggers workflows2nd App - Continues Async WorkFlows3rd App - REST APII am currently using datasourcetransactionmanager.&amp;lt;bean id="transactionManager" class="org.springframework.jdb</description>
      <pubDate>Sat, 08 Feb 2014 07:29:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/datasourcetransactionmanager-or-jtatransactionmanager/m-p/151730#M106449</guid>
      <dc:creator>rangoo</dc:creator>
      <dc:date>2014-02-08T07:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: DataSourceTransactionManager or JTATransactionManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/datasourcetransactionmanager-or-jtatransactionmanager/m-p/151731#M106450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you're using spring, we wrap the datasource in a TransactionAwareDatasourceProxy (if not already of that instance) to make sure Activiti used the same transaction. If you use the same transactionManager instance for all of your apps (see platformTransactionManger property on SpringProcessEngineCOnfiguration), this will work without a problem, using only ONE transaction. This only works, of course, if you're in the same spring-context. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not really sure if your apps reference each other - eg. a transactional service is called from within the execution of a service-task. If so, and the Datasource is the same JTA won't be more usefull as just using the same "PlatformTransactionManager", as no datasources need to be synchronised. If the apps do NOT reference each other, there is no need for a single transactiobn-manager, as the transactions will never be mixed work from multiple apps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 08:56:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/datasourcetransactionmanager-or-jtatransactionmanager/m-p/151731#M106450</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-02-10T08:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: DataSourceTransactionManager or JTATransactionManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/datasourcetransactionmanager-or-jtatransactionmanager/m-p/151732#M106451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to clarify - All 3 apps are independent use their own spring-context so they use 3 TransactionManagers (all of type datasourcetransactionmanager) pointing to same Activiti Datasource(with Global Transaction being disabled &amp;amp; one phase commit enabled). Do you still think there will be no issues using datasourcetransactionmanager?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 18:32:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/datasourcetransactionmanager-or-jtatransactionmanager/m-p/151732#M106451</guid>
      <dc:creator>rangoo</dc:creator>
      <dc:date>2014-02-10T18:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: DataSourceTransactionManager or JTATransactionManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/datasourcetransactionmanager-or-jtatransactionmanager/m-p/151733#M106452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Each app will perform its action against Activiti in its own transaction. So don't think there will be an issue with this approach technically. You only need to be aware that each app will perform its logic against Activiti in a separate transaction. Also when multiple apps access the same process instance at the same time, only one will win and the other one will get an exception.&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>Tue, 11 Feb 2014 15:16:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/datasourcetransactionmanager-or-jtatransactionmanager/m-p/151733#M106452</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-02-11T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: DataSourceTransactionManager or JTATransactionManager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/datasourcetransactionmanager-or-jtatransactionmanager/m-p/151734#M106453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks both of you guys. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Feb 2014 16:33:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/datasourcetransactionmanager-or-jtatransactionmanager/m-p/151734#M106453</guid>
      <dc:creator>rangoo</dc:creator>
      <dc:date>2014-02-11T16:33:38Z</dc:date>
    </item>
  </channel>
</rss>

