db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <knut.hat...@oracle.com>
Subject Re: JDBC Driver : connection listener
Date Tue, 16 Jul 2013 10:22:30 GMT
Guillaume CHAUVET <guillaume.chauvet@qualiformed.com> writes:

> IMO, an interesting feature will be a listener pattern provided by the
> JDBC driver. In this way, if a DisconnectedException will be throws,
> we will can notify a connection lost to another observers.

Hi Guillaume,

If you use org.apache.derby.jdbc.ClientConnectionPoolDataSource to
connect to the database, you can register a ConnectionEventListener that
will be notified if the connection to the server is lost:


Knut Anders

View raw message