Good to know we already have the code to create a new Derby dabase
instance with a fresh Ode Schema. I guess I have missed this when
creating the Tuscany Embedded Ode Server. Could you please point me to
where this is available ?

On Tue, May 13, 2008 at 11:56 AM, Alex Boisvert <[EMAIL PROTECTED]> wrote:
> Perhaps by defining a new database mode "SAMPLE" (we already have EMBEDDED,
> INTERNAL, EXTERNAL), that creates a new Derby database instance with a fresh
> Ode schema everytime the server is started?
>
> alex
>
>
> On Tue, May 13, 2008 at 11:50 AM, Luciano Resende <[EMAIL PROTECTED]>
> wrote:
>
>> In Apache Tuscany, we have a embedded ODE Server that has a dependency
>> on the ODE database (ode-dao-jpa-ojpa-derby-1.1.zip) that get's unzip
>> by the build process when the app is run. I see two issues with this
>> approach : The build infrastructure to unzip the db needs to be copied
>> on every sample app and when running from an IDE, this code might not
>> have been executed, and will require the application developer to go
>> outside of the ide, to run some build command to create the db and
>> make it available on the classpath.
>>
>>  I was wondering if there is some kind of script that could be used to
>> generate the db structure and any initial content. If so, I was
>> thinking to integrate this script into the Embedded ODE Server
>> initialization code, and create the proper db dependencies if not
>> found.
>>
>> Thoughts ?
>>
>> --
>> Luciano Resende
>> Apache Tuscany Committer
>> http://people.apache.org/~lresende <http://people.apache.org/%7Elresende>
>> http://lresende.blogspot.com/
>>
>



-- 
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Reply via email to