| From: | Dan <dan(at)scapps(dot)co(dot)uk> |
|---|---|
| To: | Radoslav Petrov <rado(at)edno(dot)moe>, Sehrope Sarkuni <sehrope(at)jackdb(dot)com> |
| 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 17:21:46 |
| Message-ID: | c2d230af-0168-f9c2-d2c9-b640e04424ce@scapps.co.uk |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | 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&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 & 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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Cramer | 2019-12-09 11:35:55 | version 42.2.9 released |
| Previous Message | Dan | 2019-12-08 17:15:02 | Re: Configuring Hibernate for PostgreSQL Access Over Unix Socket With JDBC |