<?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: transaction synchronization in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/transaction-synchronization/m-p/58145#M35500</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm… not sure how I could miss that huge XML snippet &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said, basically this works in a single resource context if you make sure that your JPA and activiti work happens in the same JDBC connection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unless someone else can see what's wrong with this, could you assemble a simple testcase and attach it to this thread?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And add information on you environment, app server, version etc?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2011 11:43:20 GMT</pubDate>
    <dc:creator>meyerd</dc:creator>
    <dc:date>2011-11-21T11:43:20Z</dc:date>
    <item>
      <title>transaction synchronization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transaction-synchronization/m-p/58142#M35497</link>
      <description>Hi,I'm not able to synchronize transtacion among jpa-spring-activity.In my test case I tried to delete a process AND a JPA entity related to the process. The process was deleted also if the method throw an exception! @Transactionalpublic void transactionalMethod(){runtimeService.deleteProcessInstanc</description>
      <pubDate>Fri, 18 Nov 2011 12:07:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transaction-synchronization/m-p/58142#M35497</guid>
      <dc:creator>elsarfhem</dc:creator>
      <dc:date>2011-11-18T12:07:17Z</dc:date>
    </item>
    <item>
      <title>Re: transaction synchronization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transaction-synchronization/m-p/58143#M35498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In order to help you, I would need to see your activiti configuration / application context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically this works if you configure it right and use the same datasource for activiti and JPA.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to use different data-sources you need JTA.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 12:17:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transaction-synchronization/m-p/58143#M35498</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2011-11-18T12:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: transaction synchronization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transaction-synchronization/m-p/58144#M35499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;what do you mean? I attached my configuration… I stripped the unnecessary part (like spring security). Is this not enough?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using only one datasource fetched through spring jndi call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I missing something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can attached further details about persistence.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;persistence version="2.0"&lt;BR /&gt; xmlns="&lt;A href="http://java.sun.com/xml/ns/persistence" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/xml/ns/persistence&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt; xsi:schemaLocation="&lt;A href="http://java.sun.com/xml/ns/persistence" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/xml/ns/persistence&lt;/A&gt; &lt;A href="http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" rel="nofollow noopener noreferrer"&gt;http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd&lt;/A&gt;"&amp;gt;&lt;BR /&gt; &amp;lt;persistence-unit name="ControlloQualitaPU" transaction-type="RESOURCE_LOCAL"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;provider&amp;gt;org.hibernate.ejb.HibernatePersistence&amp;lt;/provider&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;non-jta-data-source&amp;gt;java:jdbc/cqds&amp;lt;/non-jta-data-source&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property name="hibernate.dialect" value="org.hibernate.dialect.DB2Dialect" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property name="hibernate.hbm2ddl.auto" value="update" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property name="hibernate.archive.autodetection" value="class, hbm" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property name="hibernate.show_sql" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;property name="hibernate.query.substitutions" value="true 1, false 0" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/properties&amp;gt;&lt;BR /&gt; &amp;lt;/persistence-unit&amp;gt;&lt;BR /&gt;&amp;lt;/persistence&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 14:47:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transaction-synchronization/m-p/58144#M35499</guid>
      <dc:creator>elsarfhem</dc:creator>
      <dc:date>2011-11-18T14:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: transaction synchronization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transaction-synchronization/m-p/58145#M35500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm… not sure how I could miss that huge XML snippet &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said, basically this works in a single resource context if you make sure that your JPA and activiti work happens in the same JDBC connection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unless someone else can see what's wrong with this, could you assemble a simple testcase and attach it to this thread?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And add information on you environment, app server, version etc?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2011 11:43:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transaction-synchronization/m-p/58145#M35500</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2011-11-21T11:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: transaction synchronization</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transaction-synchronization/m-p/58146#M35501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;sorry, at the moment I have no time to make a simple test case… I have to release my project… Delivery is really near.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;could it depends on these parameters? &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;property name="jpaHandleTransaction" value="true" /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– yet tested with false –&amp;gt;&lt;BR /&gt;&amp;lt;property name="jpaCloseEntityManager" value="true" /&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;!– yet tested with false –&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;What should supposed to be the correct settings with JSF/Spring/JPA? Both false?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2011 11:47:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transaction-synchronization/m-p/58146#M35501</guid>
      <dc:creator>elsarfhem</dc:creator>
      <dc:date>2011-12-05T11:47:40Z</dc:date>
    </item>
  </channel>
</rss>

