views:

110

answers:

1

I am planning to deploy GlassFish v3 open source edition to a production environment. It comes with JavaDB (Apache Derby) which is just want I need. The only problem is that JavaDB is not started by default when GlassFish starts. I would have to go to the command line and enter:

asadmin start-database

Is there away to make the database start automatically when the server (GlassFish) starts? I hated doing that manually everytime while I was developing my application and I certainly don't want to do that in production.

Thanks in advance

A: 

Once you go into production, you can start the db once and just leave it running, regardless of the state of the app server.

You could create a shell script to 'bundle' start-domain and start-database into a single uber-start command.

vkraemer
This is what I was planning to do since there is nothing else is possible. Thanks for the response.
del.ave

related questions