Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-863

CompanyWeb DAS Sample should create and initialize the canned database when app is loaded by first time and db is not available

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Java-DAS-beta1
    • Fix Version/s: Java-DAS-beta1
    • Component/s: Java DAS Samples
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Today we rely on copying the java/das/samples/companyweb/dasttest database to a tomcat installation, so the canned database is available for DAS sample app companyweb. A better way for doing this would be to have a servlet (dbInit) that would load on app startup and create necessary tables and populate it with canned information if the db is not available. This would make deployment easier, would avoid external dependencies on the sample distribution, and would probably make it easier to execute htmlUnit multiple times, as the htmlUnit could call the servlet to force refresh of the database data.
      For an example on how to do this, please take a look at dbInit servlet in BigBank sample application :
      https://svn.apache.org/repos/asf/incubator/tuscany/java/sampleapps/bigbank/account/src/main/java/bigbank/account/services/accountdb/AccountDBInit.java

        Attachments

        1. JIRA863-May17-Amita.txt
          57 kB
          Amita Vadhavkar
        2. JIRA863-May16-Amita.txt
          59 kB
          Amita Vadhavkar
        3. JIRA863-dbsetup-patch-Apr23-Amita.txt
          169 kB
          Amita Vadhavkar
        4. JIRA863-dbsetup-patch-Apr23-Amita.txt
          169 kB
          Amita Vadhavkar
        5. JIRA863-Apr17-Patch-Amita.zip
          27 kB
          Amita Vadhavkar
        6. JIRA863-Apr13-Amita.zip
          32 kB
          Amita Vadhavkar
        7. JIRA-863-Mar-2-Amita.jar
          9 kB
          Amita Vadhavkar

          Activity

            People

            • Assignee:
              luciano resende Luciano Resende
              Reporter:
              luciano resende Luciano Resende
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: