<?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 How to interrupt(stop) the transction while doing the process of save(),update() or merge()(i.e beginTransaction---commit()) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-stop-the-transction-while-doing-the-process-of/m-p/167087#M120638</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have to interrupt(stop) the tranaction when its take longer time. I am using thread local to create new session per request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;The process is one request to create the session and commit the transaction. Meanwhile i need to interrupt the transaction after&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;transaction is created. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Session session = HibernateSessionFactory.createNewSession();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Transaction tran=session.beginTransaction();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;…………….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;……………&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tran.commit();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;My requirement is , i have sent one more request to cancel the transaction. If the transaction is already completed, i just ignore the cancel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Otherwise, i need to stop the tranasction if it will take longer time.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Session session = HibernateSessionFactory.createNewSession();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Transaction tran=session.beginTransaction();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;…………….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;……………//Need to stop the transaction before commit!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;……………&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;tran.commit();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Is it possible? How to achieve this work?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2013 09:23:08 GMT</pubDate>
    <dc:creator>stsivaraj</dc:creator>
    <dc:date>2013-11-27T09:23:08Z</dc:date>
    <item>
      <title>How to interrupt(stop) the transction while doing the process of save(),update() or merge()(i.e beginTransaction---commit())</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-stop-the-transction-while-doing-the-process-of/m-p/167087#M120638</link>
      <description>I have to interrupt(stop) the tranaction when its take longer time. I am using thread local to create new session per request.&amp;nbsp;&amp;nbsp;&amp;nbsp;The process is one request to create the session and commit the transaction. Meanwhile i need to interrupt the transaction after&amp;nbsp;&amp;nbsp;&amp;nbsp;transaction is created. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Session se</description>
      <pubDate>Wed, 27 Nov 2013 09:23:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-stop-the-transction-while-doing-the-process-of/m-p/167087#M120638</guid>
      <dc:creator>stsivaraj</dc:creator>
      <dc:date>2013-11-27T09:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt(stop) the transction while doing the process of save(),update() or merge()(i.e beginTransaction---commit())</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-stop-the-transction-while-doing-the-process-of/m-p/167088#M120639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't see what this has to do with Activiti. It seems to be more a Hibernate question. Could you explain what exactly you would like to get from Activiti?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Nov 2013 13:35:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-stop-the-transction-while-doing-the-process-of/m-p/167088#M120639</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-11-28T13:35:23Z</dc:date>
    </item>
  </channel>
</rss>

