<?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: Using alf transactions with another app? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/using-alf-transactions-with-another-app/m-p/259567#M212697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;inside xyz.get.desc.xml. What does it mean?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The transaction element is dedicated to manage how the WebScript should be executed in the Spring container and these are all the values that you can use to configure the element:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;none - the WebScript will be executed without transaction support, this means that many repository features may goes in error (writing and admin)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;required - the WebScript will be executed using an unique transaction and if it was defined previously it is taken from the container otherwise will be created a new transaction dedicated to the script. For each invocation you have an unique transaction for all the operations performed in this WebScript. This means that if you are storing more than one content, if there is an error in one of them, the container will rollback all the contents.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;requiresnew - The WebScript will be executed in a new transaction anyway even if it was previously created&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;Remember that some methods must be executed in a transaction context, for example all the store operations and administration operations. This because all the operations are proxied by Spring and this is the right way to implement this type of operations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Generally it depends on what you have to implement with your WebScript: if you only need to read you could use none, but some operations could fail. Otherwise you can use transaction to manage all the operations in an unique transaction or you can use requiresnew to require a new transaction for each request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have to manage a WebScript in a different way, you can configure the WebScript without transaction and in your Java-Backed implementation you can use the RetryingTransactionCallback to manually manage transactions and change the behaviour of your WebScript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 May 2011 12:36:25 GMT</pubDate>
    <dc:creator>openpj</dc:creator>
    <dc:date>2011-05-03T12:36:25Z</dc:date>
    <item>
      <title>Using alf transactions with another app?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-alf-transactions-with-another-app/m-p/259566#M212696</link>
      <description>Hi,I have a webapp placed inside same tomcat where alfresco war resides. This webapp uses webscripts to call services from alfresco repository &amp;amp; does required tasks. Now i have following questions:1. I have given &amp;lt;transaction&amp;gt;required&amp;lt;/transaction&amp;gt;‍ inside xyz.get.desc.xml. What does</description>
      <pubDate>Mon, 02 May 2011 12:31:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-alf-transactions-with-another-app/m-p/259566#M212696</guid>
      <dc:creator>dynamolalit</dc:creator>
      <dc:date>2011-05-02T12:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using alf transactions with another app?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/using-alf-transactions-with-another-app/m-p/259567#M212697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;inside xyz.get.desc.xml. What does it mean?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;The transaction element is dedicated to manage how the WebScript should be executed in the Spring container and these are all the values that you can use to configure the element:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;none - the WebScript will be executed without transaction support, this means that many repository features may goes in error (writing and admin)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;required - the WebScript will be executed using an unique transaction and if it was defined previously it is taken from the container otherwise will be created a new transaction dedicated to the script. For each invocation you have an unique transaction for all the operations performed in this WebScript. This means that if you are storing more than one content, if there is an error in one of them, the container will rollback all the contents.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;requiresnew - The WebScript will be executed in a new transaction anyway even if it was previously created&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;Remember that some methods must be executed in a transaction context, for example all the store operations and administration operations. This because all the operations are proxied by Spring and this is the right way to implement this type of operations.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Generally it depends on what you have to implement with your WebScript: if you only need to read you could use none, but some operations could fail. Otherwise you can use transaction to manage all the operations in an unique transaction or you can use requiresnew to require a new transaction for each request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you have to manage a WebScript in a different way, you can configure the WebScript without transaction and in your Java-Backed implementation you can use the RetryingTransactionCallback to manually manage transactions and change the behaviour of your WebScript:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Web_Scripts" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Web_Scripts&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2011 12:36:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/using-alf-transactions-with-another-app/m-p/259567#M212697</guid>
      <dc:creator>openpj</dc:creator>
      <dc:date>2011-05-03T12:36:25Z</dc:date>
    </item>
  </channel>
</rss>

