Mar 1, 2018

Configure the JDBC realm on Payara Micro Java Application Server

On Payara Micro you don’t have access to an admin console, which is why you need to manually add the configuration of the security realm, the JDBC pool and the JDBC resource to a domain.xml file.

You can just take the domain.xml that comes with Payara Micro and add the highlighted lines with the data according to your database configuration.

If you don’t want to create these lines manually and avoid errors which could later be difficult to troubleshoot, you can just start an instance of a full Payara server and create the configurations there. Afterwards you can open the domain.xml of the full server and copy the configuration onto the domain.xml of Payara Micro.