Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC

Поиск
Список
Период
Сортировка
От Dan
Тема Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC
Дата
Msg-id c2d230af-0168-f9c2-d2c9-b640e04424ce@scapps.co.uk
обсуждение исходный текст
Ответ на Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC  (Radoslav Petrov <rado@edno.moe>)
Список pgsql-jdbc

Hi Radoslav,

Thanks very much for getting back to me.

Here is the config line that is now working for me:

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

-Dan

On 08/12/2019 14:17, Radoslav Petrov wrote:


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 по дате отправления:

Предыдущее
От: Dan
Дата:
Сообщение: Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket WithJDBC
Следующее
От: Dave Cramer
Дата:
Сообщение: version 42.2.9 released