question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using custom socketFactory

See original GitHub issue

additional 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:closed
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
spagopcommented, Oct 9, 2021

@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?

0reactions
jtamacommented, Oct 8, 2021

@spagop We finally managed to do it in quarkus, just follow the guide : https://quarkus.io/guides/deploying-to-google-cloud#using-cloud-sql.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found