Just decided to do a followup on Adding MariaDB JDBC Connector to Payara 51.
I wanted to see if it was possibly very easy to do this using the command line.
Installing a MariaDB driver
Command add-library executed successfully.
Creating a new JDBC Connection pool
The syntax:
[--datasourceclassname
[--steadypoolsize
[--maxpoolsize
[--maxwait
[--poolresize
[--idletimeout
[--isolationlevel
[--isisolationguaranteed[=
[--isconnectvalidatereq[=
[--validationmethod
[--validationtable
[--failconnection[=
[--allownoncomponentcallers[=
[--nontransactionalconnections[=
[--validateatmostonceperiod
[--leaktimeout
[--leakreclaim[=
[--creationretryattempts
[--creationretryinterval
[--sqltracelisteners
[--statementtimeout
[--statementleaktimeout
[--statementleakreclaim[=
[--lazyconnectionenlistment[=
[--lazyconnectionassociation[=
[--associatewiththread[=
[--driverclassname
[--matchconnections[=
[--maxconnectionusagecount
[--ping[=
[--statementcachesize
[--validationclassname
[--wrapjdbcobjects[=
[--description
[-?|--help[=
Note the following:
- The escape character backslash (\) is used in the --property option to distinguish the semicolon (;).
- Two backslashes (\\) are used to distinguish the equal sign (=).
- Two backslashes (\\) are used to distinguish the colon (:).
Let's test it!
In case you wish to delete it, try:
Creating the JNDI
References
- [1] Adding MariaDB JDBC Connector to Payara 5
- https://randomthoughtsonjavaprogramming.blogspot.com/2018/12/adding-mariadb-jdbc-connector-to-paraya.html
- [2] Payara Blog - An intro to connection pools in payar server 5
- https://blog.payara.fish/an-intro-to-connection-pools-in-payara-server-5