Java Reference
In-Depth Information
A data source needs to interact with a database connection pool. NetBeans comes
pre-configured with a few connection pools out of the box, but just like with data
sources, it allows us to create a new connection pool "on demand". In order to do
this, we need to select the New Database Connection... item from the Database
Connection combo box.
NetBeans includes JDBC drivers for a few Relational Database Management
Systems ( RDBMS ) such as JavaDB, MySQL, and PostgreSQL "out of the box".
JavaDB is bundled with both GlassFish and NetBeans, therefore we picked JavaDB
for our example. This way we avoid having to install an external RDBMS.
For RDBMS systems that are not supported out of the box, we need to
obtain a JDBC driver and let NetBeans know of it's location by selecting
New Driver from the Name combo box. We then need to navigate to the
location of a JAR file containing the JDBC driver. Consult your RDBMS
documentation for details.
 
Search WWH ::




Custom Search