Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC

Поиск
Список
Период
Сортировка
От Radoslav Petrov
Тема Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC
Дата
Msg-id 8044b2dd-8fc4-3b54-fd6e-c724e9be2842@edno.moe
обсуждение исходный текст
Ответ на Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC  (Sehrope Sarkuni <sehrope@jackdb.com>)
Ответы Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC  (Dan <dan@scapps.co.uk>)
Список 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 по дате отправления:

Предыдущее
От: Sehrope Sarkuni
Дата:
Сообщение: Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC
Следующее
От: Dan
Дата:
Сообщение: Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC