Created
November 2, 2016 07:48
-
-
Save jenslohmann/31941e95e7772850bcfe157d8c5c56ad to your computer and use it in GitHub Desktop.
How to create a datasource using the wildfly CLI that will also reconnect after a network failure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data-source add --jndi-name=java:/<blah>DS --name=<blah>Pool --connection-url=jdbc:oracle:thin:@//<db-hostname>:1521/<SID/db.service> --driver-name=oracle --driver-class=oracle.jdbc.driver.OracleDriver --user-name=<db-user> --password=<db-user-password> --check-valid-connection-sql=select\ 1\ from\ dual --validate-on-match=false --background-validation=true --background-validation-millis=20000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment