Maximum database connection Problem
Posted on 2006-07-06
I am using a middle ware integration tool which gets connected to oracle database.
But in the code(Java) there is no where that we are trying to close the result set and the connections . The conenctions are always open.
When the DB is down, still the tool assumes the DB is up and tries to hit the database again and again increasing the number of connections. Once it reaches to the highest level the whole DB is down.
So I just want to know is there any way in java which verifes the connection is up or not . if the DB is not up we try to connect to the database for three time or may four times, if by that time DB is up it should get connnected other wise we ask it to sleep for say 3 hours and then try again..
Please help me with this situation.