Jump to Real's How-to Main page

Make sanity check works with Oracle

Before giving a connection from a connection cache, Jaguar can make a sanity check to determine a connection is still good. By default, Jaguar send SELECT 1 and then, from the SQLState value, check if the connection is alive or not. The statement used is not a valid one for Oracle. So each time, a reconnect will occur (this is not good for a cache!).

Jaguar provides a way to specify the statement used to check if a connection is still alive. Follow this simple procedure :


If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]