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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

PG Bug reporting form
The following bug has been logged on the website:

Bug reference:      15957
Logged by:          Prakash Prabhu Bantwal
Email address:      [hidden email]
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.

Reply | Threaded
Open this post in threaded view
|

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

Dave Cramer-4


On Tue, 13 Aug 2019 at 18:37, PG Bug reporting form <[hidden email]> wrote:
The following bug has been logged on the website:

Bug reference:      15957
Logged by:          Prakash Prabhu Bantwal
Email address:      [hidden email]
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