BUG #15957: Connection event listener not called during close()

Started by PG Bug reporting formover 6 years ago2 messagesbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following bug has been logged on the website:

Bug reference: 15957
Logged by: Prakash Prabhu Bantwal
Email address: prakashprabhu87@gmail.com
PostgreSQL version: Unsupported/Unknown
Operating system: linux
Description:

Hi,

Testing with version

<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.5</version>
</dependency>

I am using postgres with hibernate and during the close() call from the Jdbc
template is called, the connectionClosed() from the event listner is not
being called. i see the listener is being invoked from
fireConnectionClosed() but this should also be invoked from close() method.

#2Dave Cramer
pg@fastcrypt.com
In reply to: PG Bug reporting form (#1)
Re: BUG #15957: Connection event listener not called during close()

On Tue, 13 Aug 2019 at 18:37, PG Bug reporting form <noreply@postgresql.org>
wrote:

The following bug has been logged on the website:

Bug reference: 15957
Logged by: Prakash Prabhu Bantwal
Email address: prakashprabhu87@gmail.com
PostgreSQL version: Unsupported/Unknown
Operating system: linux
Description:

Hi,

Testing with version

<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.5</version>
</dependency>

I am using postgres with hibernate and during the close() call from the
Jdbc
template is called, the connectionClosed() from the event listner is not
being called. i see the listener is being invoked from
fireConnectionClosed() but this should also be invoked from close() method.

Pretty sure this is a hibernate thing. The JDBC API does not have an event
listener interface that fires on connectionClosed.

Dave