Re: Null Connection with jooq

2024-04-22 Thread Lukas Eder
This isn't specific to jOOQ, but is a general rule regarding resources. Whoever opens a resource must close the resource. - A Connection is a resource, so you must close both in your first case - A DataSource isn't a resource. It is used to create resources (Connections). jOOQ creates these

Re: Null Connection with jooq

2024-04-22 Thread ahmed mustapha ghanmi
Hello everyone, If I understand correctly, - if i pass a Connection to jooq to create a parsing connection, i need to close both the parsing connection and its underlying connection - if i pass a data source to jooq, i need to only close the parsing connection, jooq handles the underlying

Re: Null Connection with jooq

2021-03-30 Thread Walid CHAIB
Hi Lukas, Thanks again, You are alright. Problem solved. Le lun. 29 mars 2021 à 12:26, Lukas Eder a écrit : > Hi Walid, > > - Whoever opens a JDBC Connection is responsible for closing it again > - Your example is now passing the DataSource to jOOQ, in case of which > jOOQ will open *and* close

Re: Null Connection with jooq

2021-03-29 Thread Lukas Eder
Hi Walid, - Whoever opens a JDBC Connection is responsible for closing it again - Your example is now passing the DataSource to jOOQ, in case of which jOOQ will open *and* close the connection for you - However, you also close the underlying (wrapped) JDBC connection explicitly in closeDbConn.

Null Connection with jooq

2021-03-29 Thread Walid CHAIB
Why when I execute a query with jooq parsing connection I get You can see in the attached files the code of the server and the connection : - jOOQ:3.15 org.jooq.pro jooq 3.15.0 org.jooq.pro reactivestreams 3.15.0 - Java:8 - Database :Postgresql - OS:open suse - JDBC Driver:4.2 -- You