tainos tainos - 1 year ago 449
Java Question

How do I add JDBC drivers and configure JDBC Resources in Payara Micro?

What are my options to set up JDBC drivers and resources when using Java EE Payara Micro?

Answer Source

Add the datasource definition to your web.xml and then add the jar file for the JDBC jar into your WEB-INF/lib. Then deploy the war file as usual to Payara Micro.

  <!-- Example of how to use a Payara specific custom connection pool    setting -->

There is a complete example of how to do this on the Payara Examples GitHub repository. See Datasource example on Payara GitHub