<?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: a strange question about jta transaction in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/a-strange-question-about-jta-transaction/m-p/198481#M151611</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How is your H2 configured. Did you add the close delay?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"By default, closing the last connection to a database closes the database. For an in-memory database, this means the content is lost. To keep the database open, add ;DB_CLOSE_DELAY=-1 to the database URL. To keep the content of an in-memory database as long as the virtual machine is alive, use jdbc:h2:mem:test;DB_CLOSE_DELAY=-1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are not using H2 for testing JTA (but mysql) in our qa env, so no real experience there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jul 2014 09:29:00 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2014-07-04T09:29:00Z</dc:date>
    <item>
      <title>a strange question about jta transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-strange-question-about-jta-transaction/m-p/198480#M151610</link>
      <description>I use JTA manage my transaction, and from spring my service bean like this:@Transactional@Component("myService")public class MyServiceImpl implements MyService {&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@PersistenceContext(unitName="platform")&amp;nbsp;&amp;nbsp;&amp;nbsp;private EntityManager em;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Autowired&amp;nbsp;&amp;nbsp;&amp;nbsp;private TaskService taskService;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Overrid</description>
      <pubDate>Tue, 24 Jun 2014 08:02:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-strange-question-about-jta-transaction/m-p/198480#M151610</guid>
      <dc:creator>jonlee</dc:creator>
      <dc:date>2014-06-24T08:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: a strange question about jta transaction</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-strange-question-about-jta-transaction/m-p/198481#M151611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How is your H2 configured. Did you add the close delay?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"By default, closing the last connection to a database closes the database. For an in-memory database, this means the content is lost. To keep the database open, add ;DB_CLOSE_DELAY=-1 to the database URL. To keep the content of an in-memory database as long as the virtual machine is alive, use jdbc:h2:mem:test;DB_CLOSE_DELAY=-1"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We are not using H2 for testing JTA (but mysql) in our qa env, so no real experience there.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2014 09:29:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-strange-question-about-jta-transaction/m-p/198481#M151611</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-07-04T09:29:00Z</dc:date>
    </item>
  </channel>
</rss>

