From the course: Java EE: Application Servers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Payara database configurations

Payara database configurations

From the course: Java EE: Application Servers

Start my 1-month free trial

Payara database configurations

- [Instructor] The Hplus IT directors asked if we have configured the Payara server database resources. And so, we're off to our next task. Again, with the Payara Glassfish server started, we're going to add our MySQL database driver to the Payara instance using the CLI. By typing bin/asadmin add-library, and then we're going to go to our downloads, select the database driver, and hit enter. This will prompt us for a username, we'll type admin, and a password. If everything was successful, we should see a command that says add-library executed successfully. Alright, so now let's open back up our browser, then go to the resources, and select JDBC, and then JDBC Connection Pools. You'll notice that on this page, there are a couple of different connection pools already. Keep in mind, these are here for examples, and not meant for production. We'll click on the New buttton, and in the Pool Name, I'm going to put HplusPool. In the Resource Type, I'll select javax.sql.DataSource. For…

Contents