First expand the "JDBC" node on the left side of the Payara admin console. Then click on the "JDBC Resources" node. This puts a "JDBC Resources" pane on the right side as shown below. Click on the "New" button to bring up a "New JDBC Resource" dialog.
Fill in information in the "New JDBC Resource" pane. For the "JNDI Name:" field you should use the name "jdbc/projectdb". This is the name used in the test program. Remember this name. It will be used in managed beans in your project that need to reference the resource.
For the "Pool Name:" field, select the name "projectPool" from the drop down list. Then click on the "OK" button.
When you have finished with the last step you should see a pane similar to the one below. The JNDI name for your resource should appear in the "JNDI Name" column.
When you use a resource in JSF managed beans, you will inject it with a @Resource(name="jndi-name") annotation, where jndi-name should be the JNDI name of the resource.