Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jenslohmann/31941e95e7772850bcfe157d8c5c56ad to your computer and use it in GitHub Desktop.
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
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