A Java DataBase Connectivity (JDBC) resource (data source) provides applications with the means of connecting to a database.
To create a JDBC resource, you must first create a JDBC connection pool. See To Create a JDBC Connection Pool.
The JDBC Resources page opens.
The New JDBC Resource page opens.
The JNDI name organizes and locates components within a distributed computing environment similarly to the way that card catalogs organize and represent locations of books in a library. Consequently, the JNDI name becomes an important method of accessing the JDBC resource. By convention, the name begins with the jdbc/ string, for example, jdbc/payrolldb. Don’t forget the forward slash.
The name must contain only alphanumeric, underscore, dash, or dot characters.
This option is enabled by default.
The GlassFish Serverdoes not define any additional properties for JDBC resources.
To add a property, click the Add Property button. In the blank row that appears, type the property name in the Name field, and type the property value in the Value field.