admin@glassfish.java.net

Enhancement request for JavaDB administration

From: Noah White <emailnbw_at_gmail.com>
Date: Thu, 3 Jun 2010 17:46:36 -0400

Hi Brian,

I'd like to throw out an enhancement request that would make life much easier for administering/deploying with JavaDB.

Using JavaDB is an attractive choice for many applications deployed to GF because it comes pre bundled and there is no need to install an additional relational db package. However, one down side is that there appears to be no facility for automatically starting JavaDB as a server when Glassfish starts. The only way to achieve automatically usage seems to be through having your application start the JavaDB in embedded mode and/or configure a JDBC Connection pool / JNDI resource which starts it in embedded mode. There is a major drawback to embedded mode in that only one client (the application) can connect to the DB at a time. This makes development in that environment a real pain. In order to check the contents of the DB you have to stop the application and then connect to it with your client. When JavaDB is running as a server there is no such limitation and it makes development much easier.

So with that in mind I think it would be incredibly useful to be able to launch the JavaDB in server mode automatically. My suggestion/enhancement request is to have the GF installer install a JavaDB launcher as a service in the same fashion it does for GF.

Thanks,

-Noah
>