Guillaume CHAUVET <[email protected]> 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: http://docs.oracle.com/javase/7/docs/api/index.html?javax/sql/ConnectionEventListener.html -- Knut Anders
