There is one sample implementation posted here: http://archives.postgresql.org/pgsql-jdbc/2012-01/msg00001.php
Is there a good reason why the pg jdbc driver currently throws “Method org.postgresql.jdbc4.Jdbc4Connection.isValid(int) is not yet implemented?”
Is there a better solution to checking if a connection is valid rather than using the isValid() method?
It's actually in git. You would have to build a jar from source to get it. Dave Cramer dave.cramer(at)credativ(dot)ca http://www.credativ.ca On Tue, Apr 24, 2012 at 8:24 AM, <jonathan.lister@vaisala.com> wrote: > There is one sample implementation posted here: > http://archives.postgresql.org/pgsql-jdbc/2012-01/msg00001.php > > Is there a good reason why the pg jdbc driver currently throws “Method > org.postgresql.jdbc4.Jdbc4Connection.isValid(int) is not yet implemented?” > > Is there a better solution to checking if a connection is valid rather than > using the isValid() method?
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера