-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Add support for Oracle UCP #23403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Oracle UCP #23403
Conversation
@@ -21,6 +21,7 @@ dependencies { | |||
optional("com.atomikos:transactions-jta") | |||
optional("com.fasterxml.jackson.core:jackson-databind") | |||
optional("com.google.code.gson:gson") | |||
optional("com.oracle.ojdbc:ucp") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realized I used the old groupId for Oracle. It would be better replace "com.oracle.ojdbc" with "com.oracle.database.jdbc".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A PR is usually created off a branch so that's a bit unfortunate now but if you add an extra commit on your fork of master
and push, this will update this PR automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, done.
@@ -65,6 +65,7 @@ dependencies { | |||
optional("org.codehaus.groovy:groovy-templates") | |||
optional("com.github.ben-manes.caffeine:caffeine") | |||
optional("com.github.mxab.thymeleaf.extras:thymeleaf-extras-data-attribute") | |||
optional("com.oracle.ojdbc:ucp") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realized I used the old groupId for Oracle. It would be better replace "com.oracle.ojdbc" with "com.oracle.database.jdbc".
"com.oracle.database.jdbc".
I've started to review and polish this. Unfortunately the use of alises has some limit. UCP requires us to map the driver class name to I've created #23480 |
Yes, I saw the conflict with BasicDataSource. It’s easy to make it work (it doesn’t right now), but I haven’t yet found a way to make it right. Ciao, FG
|
@fabio-grassi-gbs thank you for making your first contribution to Spring Boot. |
It was a pleasure. I like the improvements you made to my code. |
@fabio-grassi-gbs How can one control more advanced configuration settings like |
@fabio-grassi-gbs ping? |
You can set any property via application.properties. For instance: spring.datasource.oracleucp.validateConnectionOnBorrow=false |
Thanks @fabio-grassi-gbs. @davidkarlsen please review the guidelines for contributing and ask questions on StackOverflow or Gitter. |
Added support for autoconfiguration of Oracle Universal Connection Pool. Fixes gh-12865.