Configuring the GlassFish server
The GlassFish 4 server bundled with NetBeans is automatically configured the first time you run the project. This means any required resources are set up dynamically based on the current state of the project. All such properties are copied to the glassfish-resources.xml
file in the setup
directory, as shown in the following screenshot:
The glassfish-resources.xml
file was modified during the database reverse engineering process to include the database connection pool and JDBC resources required by JPA. As a result, the contents of this file define the required GlassFish connection pool details.
It is important to understand that this file is used by NetBeans to dynamically configure the GlassFish server assigned to the project. In a real-world situation, the GlassFish server is configured by administrators and deploying a web application is done either from the command line or through the GlassFish administration console. You will not be deploying your application...