If you decide to use Apache Derby as a database, its version called JavaDB comes with the jee6 + Glassfish package, you can read this tutorial on how to connect to it and create tables from Eclipse. You need to download the Apache Derby plugin.
This has nothing to do with Glassfish, however this example shows how to connect to it from a regular Java application using JDBC.
source
share