diff options
author | Jim Hahn <jrh3@att.com> | 2019-10-24 10:17:07 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2019-10-24 10:17:07 -0400 |
commit | 9a5f9a2e295efbdcb143d03ceda320ae484534af (patch) | |
tree | a1aa4867c2922ff18ca4cdc8d39505ee28010efc /feature-distributed-locking/src/main/feature | |
parent | 6e0b450abe7e62fa47ffe14e95a67d035174dbdb (diff) |
Handle DB error codes in distributed locking
The commons library wraps the SQLExceptions within its own SQLException,
so changed the code to simply look for a cause that's SQLTransientException,
eliminating the need to check specific error codes. Deleted the error
code property now that it is no longer needed.
Also updated the distributed locking properties to include examples.
Issue-ID: POLICY-2113
Signed-off-by: Jim Hahn <jrh3@att.com>
Change-Id: If46e85a81cfc952e561174fea670df81efb8309a
Diffstat (limited to 'feature-distributed-locking/src/main/feature')
-rw-r--r-- | feature-distributed-locking/src/main/feature/config/feature-distributed-locking.properties | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/feature-distributed-locking/src/main/feature/config/feature-distributed-locking.properties b/feature-distributed-locking/src/main/feature/config/feature-distributed-locking.properties index c609c8f9..9acea3c0 100644 --- a/feature-distributed-locking/src/main/feature/config/feature-distributed-locking.properties +++ b/feature-distributed-locking/src/main/feature/config/feature-distributed-locking.properties @@ -19,7 +19,12 @@ ### #Database properties -javax.persistence.jdbc.driver= org.mariadb.jdbc.Driver +javax.persistence.jdbc.driver=org.mariadb.jdbc.Driver javax.persistence.jdbc.url=jdbc:mariadb://${env:SQL_HOST}:3306/pooling javax.persistence.jdbc.user=${env:SQL_USER} javax.persistence.jdbc.password=${env:SQL_PASSWORD} + +# default property values are commented out +#distributed.locking.expire.check.seconds=900 +#distributed.locking.retry.seconds=60 +#distributed.locking.max.retries=2 |