Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC

From: Radoslav Petrov <rado(at)edno(dot)moe>
To: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>, Dan <dan(at)scapps(dot)co(dot)uk>
Cc: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC
Date: 2019-12-08 14:17:41
Message-ID: 8044b2dd-8fc4-3b54-fd6e-c724e9be2842@edno.moe
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dan 2019-12-08 17:15:02 Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC
Previous Message Sehrope Sarkuni 2019-12-08 13:27:59 Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC