<?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 getUserTransaction vs getNonPropagatingUserTransaction in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/getusertransaction-vs-getnonpropagatingusertransaction/m-p/303061#M256191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The non-propagating (REQUIRES_NEW) ensures that the transaction is always new. I supose that the problem using the getUserTransaction is that if the transaction is already running, and I use that, may appears a concurrency problem. But using always a new transaction, could give me problems of performance? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm implementing a java backed webscript. A lot of users will use my service, and for each one the code will use 4 o 5 transactions. What's the better option? When is the best option use getNonPropagatingUserTransaction vs getUserTransaction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 May 2014 08:30:23 GMT</pubDate>
    <dc:creator>spilby</dc:creator>
    <dc:date>2014-05-26T08:30:23Z</dc:date>
    <item>
      <title>getUserTransaction vs getNonPropagatingUserTransaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getusertransaction-vs-getnonpropagatingusertransaction/m-p/303061#M256191</link>
      <description>The non-propagating (REQUIRES_NEW) ensures that the transaction is always new. I supose that the problem using the getUserTransaction is that if the transaction is already running, and I use that, may appears a concurrency problem. But using always a new transaction, could give me problems of perfor</description>
      <pubDate>Mon, 26 May 2014 08:30:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getusertransaction-vs-getnonpropagatingusertransaction/m-p/303061#M256191</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2014-05-26T08:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: getUserTransaction vs getNonPropagatingUserTransaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getusertransaction-vs-getnonpropagatingusertransaction/m-p/303062#M256192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When your code is invoked from a non-transactional context, getNonPropagatingUserTransaction will behave exactly as getUserTransaction,they will all create a new transaction&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When your code is invoked from a transactional context getNonPropagatingUserTransaction will suspend the current transaction and create a new one.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So which one to use depends on your semantics requirment instead of performance .&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And no matter which you are using I don't think performance is a problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 09:45:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getusertransaction-vs-getnonpropagatingusertransaction/m-p/303062#M256192</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-05-26T09:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: getUserTransaction vs getNonPropagatingUserTransaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getusertransaction-vs-getnonpropagatingusertransaction/m-p/303063#M256193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Oks! Thanks for the explanation &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;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 11:54:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getusertransaction-vs-getnonpropagatingusertransaction/m-p/303063#M256193</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2014-05-26T11:54:56Z</dc:date>
    </item>
  </channel>
</rss>

