Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC - Mailing list pgsql-jdbc

From Radoslav Petrov
Subject Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC
Date
Msg-id 8044b2dd-8fc4-3b54-fd6e-c724e9be2842@edno.moe
Whole thread Raw
In response to Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC  (Sehrope Sarkuni <sehrope@jackdb.com>)
Responses Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC
List pgsql-jdbc


On 8.12.2019 14:13, Dan wrote:

<property name="hibernate.connection.url">jdbc:postgresql:kokodoko?socketFactory=org.newsclub.net.unix.socketfactory.PostgresqlAFUNIXSocketFactory&socketFactoryArg=/var/run/postgresql/.s.PGSQL.5432</property>

On 8.12.2019 15:27, Sehrope Sarkuni wrote:
Is the issue the unescaped ampersand? (the "&")

Replace any raw & in the URL value with &amp; and see if that works. I think this is just an XML parsing issue unrelated to the driver itself.

Regards,
-- Sehrope Sarkuni
Founder & CEO | JackDB, Inc. | https://www.jackdb.com/

Also the documentation of `junixsockets` mentions three ways to provide the configuration of the JDBC connection for PostgreSQL. https://kohlschutter.github.io/junixsocket/dependency.html
It states mandatory use of `localhost` in the connection string for variant 1 and 2. IMO You are using variant 1.

-- 
Поздрави,       | Best regards,
Радослав Петров | Radoslav Petrov

pgsql-jdbc by date:

Previous
From: Sehrope Sarkuni
Date:
Subject: Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC
Next
From: Dan
Date:
Subject: Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC