title: Automatically start JavaDB (Derby) on GlassFish
body: <p>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:</p>
  
  <pre><code>asadmin start-database
  </code></pre>
  
  <p>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.</p>
  
  <p>Thanks in advance</p>