<?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: ﻿Transactions in Java Service Tasks in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/transactions-in-java-service-tasks/m-p/115872#M81716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi oticman,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti does integrate with JTA, Spring and plain JDBC transactions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can configure actviti to use plain JDBC transaction using the StandaloneProcessEngineConfiguration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to share plain JDBC transactions between you JPA EntityManager and Activiti you have to make sure both do work in the same JDBC Connection and write some kind of abstraction for commit / rollback synchronizations. If you do not want to do that yourself, you can use the Springframework which already provides everything you need. You can use Spring just to solve this problem, without using it as a programming model for the application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2012 09:41:11 GMT</pubDate>
    <dc:creator>meyerd</dc:creator>
    <dc:date>2012-04-24T09:41:11Z</dc:date>
    <item>
      <title>﻿Transactions in Java Service Tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-in-java-service-tasks/m-p/115870#M81714</link>
      <description>Hi all,I'm going to use for the first time Activiti in a new document management project, so I would like to understand what are the 'best practice' to set up an application like this one.I want to keep this application really lightweight, so I will use only a servlet container (like tomcat), jpa1 f</description>
      <pubDate>Tue, 24 Apr 2012 09:18:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-in-java-service-tasks/m-p/115870#M81714</guid>
      <dc:creator>oticman</dc:creator>
      <dc:date>2012-04-24T09:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: ﻿Transactions in Java Service Tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-in-java-service-tasks/m-p/115871#M81715</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;1. Sure you can use Activiti without needing a Spring configuration, EJBs and only local transactions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. No, you only need JTA or XA transactions when your requirements are so.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to use JPA to access your own database entities you don't need JTA or XA transactions as well. You may however have requirements that force you to use JTA or XA transactions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you use JPA with local transactions, it can occur that a database entity is updated in a process instance that's rollbacked for some reason. The database entity was already committed if you use local transactions and not rolled back. For more information you can look at the user guide. And in addition, in my Activiti in Action book there's a section about using JPA with Activiti.&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, 24 Apr 2012 09:35:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-in-java-service-tasks/m-p/115871#M81715</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-04-24T09:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: ﻿Transactions in Java Service Tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-in-java-service-tasks/m-p/115872#M81716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi oticman,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Activiti does integrate with JTA, Spring and plain JDBC transactions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can configure actviti to use plain JDBC transaction using the StandaloneProcessEngineConfiguration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to share plain JDBC transactions between you JPA EntityManager and Activiti you have to make sure both do work in the same JDBC Connection and write some kind of abstraction for commit / rollback synchronizations. If you do not want to do that yourself, you can use the Springframework which already provides everything you need. You can use Spring just to solve this problem, without using it as a programming model for the application.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 09:41:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-in-java-service-tasks/m-p/115872#M81716</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2012-04-24T09:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: ﻿Transactions in Java Service Tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-in-java-service-tasks/m-p/115873#M81717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks meyerd, I will follow your advice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 11:05:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-in-java-service-tasks/m-p/115873#M81717</guid>
      <dc:creator>oticman</dc:creator>
      <dc:date>2012-04-24T11:05:36Z</dc:date>
    </item>
  </channel>
</rss>

