Using custom socketFactory
See original GitHub issueadditional jdbc properties seems to be ignored.
Trying to specify additional jdbc properties in jdbc url connection string but they seemed to be ignore :
Version
Using 3.9.5
Context
When specifying the following connection string : postgresql:///my-db?cloudSqlInstance=project:europe-west1:my-db&socketFactory=com.google.cloud.sql.postgres.SocketFactory
, I get the following error : Connection refused: localhost/127.0.0.1:543
Extra
The corresponding url with classical jdbc driver works perfectly fine. This is very needed to connect to GCP managed DB.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Using Custom Socket Factories with Java RMI
This tutorial shows you steps to follow to implement and use custom socket factories with Java Remote ... Using a Custom Socket Factory...
Read more >Using a Custom RMI Socket Factory
This tutorial shows you the steps to follow to implement and use a custom RMI socket factory. A custom RMI socket factory is...
Read more >How to use a custom socketfactory in Apache HttpComponents
We use a custom socket factory to allow HttpClient connections to connect to HTTPS URLs with untrusted certificates. Here is ...
Read more >How to use a custom socketfactory in Apache HttpComponents
I have been trying to use a custom SocketFactory in the httpclient library from the Apache HTTPComponents project. So far without luck.
Read more >Creating a Custom RMI Socket Factory
This page shows you the steps to follow to create and install a custom RMI socket factory. A custom RMI socket factory is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@jtama thanks for the prompt answer. to be sure, could you please confirm the guide you link work also with reactive sql clients (mysql)? because in one of your comment you mentioned that these configurations are needed: %gcp.quarkus.datasource.reactive.url=postgresql://:5432/db-name?host=/cloudsql/project-id:zone:db-name
%gcp.quarkus.vertx.prefer-native-transport=true and with some netty dependencies. Please could please share a github project where you test the scenario?
@spagop We finally managed to do it in quarkus, just follow the guide : https://quarkus.io/guides/deploying-to-google-cloud#using-cloud-sql.