You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Luciano Resende (JIRA)" <tu...@ws.apache.org> on 2006/10/17 02:33:36 UTC

[jira] Updated: (TUSCANY-863) CompanyWeb DAS Sample should create and initialize the canned database when app is loaded by first time and db is not available

     [ http://issues.apache.org/jira/browse/TUSCANY-863?page=all ]

Luciano Resende updated TUSCANY-863:
------------------------------------

        Fix Version/s: Wish list
                           (was: Java-Mx)
    Affects Version/s: Wish list
                           (was: Java-Mx)

Updating the JIRA to get placed on the wishlist

> CompanyWeb DAS Sample should create and initialize the canned database when app is loaded by first time and db is not available
> -------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TUSCANY-863
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-863
>             Project: Tuscany
>          Issue Type: Wish
>          Components: Java DAS Samples
>    Affects Versions: Wish list
>            Reporter: Luciano Resende
>             Fix For: Wish list
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org