Creating datasources and a connection pool

Take the following steps to create your datasources and connection pool:

  1. To create a datasource and a connection pool to help you use databases in your project, start WildFly and visit the following URL:

http://localhost:9990/

  1. Click on Deployments and then click on the Add button. In the opened page, select Upload a new deployment and click on the Next button. In the opened page, select the proper JDBC connector (we will use MySQL for this recipe) and click on Next.
  2. Verify the information in the opened page and click on Finish.
  3. Now that your JDBC connector is available in the server, you can go ahead and create your datasource. Go to Home in the administration panel and click on the Configuration ...

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.