<?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: Migrating example source code from the Manning book in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/migrating-example-source-code-from-the-manning-book/m-p/198927#M152057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The book assumes an H2 database exposed to TCP I would assume.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is an in memory database, but persistent in a file, so it would survive a reboot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jun 2015 10:25:30 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2015-06-12T10:25:30Z</dc:date>
    <item>
      <title>Migrating example source code from the Manning book</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/migrating-example-source-code-from-the-manning-book/m-p/198925#M152055</link>
      <description>If anyone is interested, I migrated the source code examples from the Manning book to the latest version of Activiti (5.17.0).First thing to be aware of is the installation process described in the book has been phased out, see http://bpmn20inaction.blogspot.nl/2013/02/activiti-in-action-updates-par</description>
      <pubDate>Thu, 04 Jun 2015 02:32:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/migrating-example-source-code-from-the-manning-book/m-p/198925#M152055</guid>
      <dc:creator>jemmerling</dc:creator>
      <dc:date>2015-06-04T02:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating example source code from the Manning book</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/migrating-example-source-code-from-the-manning-book/m-p/198926#M152056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Some updates having to do with database access. First I must confess I don't understand everything that is going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the Activiti Explorer has a db.properties containing the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;jdbc.url=jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000&lt;/CODE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This implies an in-memory database. For the examples in the book to work i.e. the Book Order example in Chapter 1, it seems it should be using the stand-alone H2 instance as called for in the book.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another thing I noticed is that in my home directory there was a couple of H2 database files including one named activiti.h2.db. I'm not certain how that got created (would an in-memory instance do that?). Also, when the Explorer launches it tries to create a new Activiti schema which makes sense for an in-memory database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I changed was to get everything to use the following URL: jdbc:h2:~/activiti this includes the Explorer and the Manning book example code. I was finally able to get the example to work! I can now see the new task in the Explorer. It did seem rather slow showing up, though.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However under the circumstances I am not convinced that if I were to bounce Tomcat there would not be a problem because some of my experimentation indicated it was failing startup due to trying to create a new schema instance where one already exists. Which makes sense for an in-memory H2 instance but not for a stand-alone instance, however the example in the book seems to require a stand-alone instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wondering if anybody has further insight?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 23:00:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/migrating-example-source-code-from-the-manning-book/m-p/198926#M152056</guid>
      <dc:creator>jemmerling</dc:creator>
      <dc:date>2015-06-11T23:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating example source code from the Manning book</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/migrating-example-source-code-from-the-manning-book/m-p/198927#M152057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The book assumes an H2 database exposed to TCP I would assume.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is an in memory database, but persistent in a file, so it would survive a reboot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 10:25:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/migrating-example-source-code-from-the-manning-book/m-p/198927#M152057</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-06-12T10:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating example source code from the Manning book</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/migrating-example-source-code-from-the-manning-book/m-p/198928#M152058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1.) Can an in-memory H2 instance be accessed from a different JVM e.g. the Explorer data being accessed by the JUnit tests in the Manning book sample code? As that is needed for the examples to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.) If the data is persisted between sessions then won't there still be a problem when Tomcat is bounced because the Explorer will try to recreate the schema from scratch?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;–John Emmerling&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jun 2015 14:14:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/migrating-example-source-code-from-the-manning-book/m-p/198928#M152058</guid>
      <dc:creator>jemmerling</dc:creator>
      <dc:date>2015-06-13T14:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating example source code from the Manning book</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/migrating-example-source-code-from-the-manning-book/m-p/198929#M152059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. Yes, if you set up the H2 db with the TCP interface&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. No, there is a check in Activiti that checks if the schema is correct. Unless you mean something else with 'bounced'?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2015 09:09:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/migrating-example-source-code-from-the-manning-book/m-p/198929#M152059</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-06-16T09:09:21Z</dc:date>
    </item>
  </channel>
</rss>

