How to do it...

  1. We will begin by configuring our connection pool in GlassFish 5. Once it is up and running, go to this URL:

http://localhost:8080

  1. Now click on the go to the Administration Console link or if you prefer, go straight to the URL at:

http://localhost:4848/

  1. Then follow this path in the left menu:

Resources | JDBC | JDBC Connection Pools

  1. Click on the New button. It will open the New JDBC Connection Pool page. Fill in the fields as described here:
  • Pool Name: MysqlPool
  • Resource Type: javax.sql.DataSource
  • Database Driver Vendor: MySql

Of course, you can make your own custom choices, but then we will be following different paths!

  1. Click on the Next button. It will open the second step for our pool creation process.

This new ...

Get Java EE 8 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.