I am planning to deploy GlassFish v3 open source edition to a production environment. It comes with JavaDB (Apache Derby) which is just what 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 a way to make the database start automatically whenever 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
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.