jas123
asked on
isClosed method of OracleConnection class
I use the isClosed method in atest java class.
In a while(true) loop I call is closed and print its value.
When I run the class and see the output the value printed is always false. In between if I restart the datbase, still the value printed is false (whioch actually should be true).
How do I know that the connection is no longer valid before I fire a query.Does this isClosed method help?
Thanks
Regards
JAs
In a while(true) loop I call is closed and print its value.
When I run the class and see the output the value printed is always false. In between if I restart the datbase, still the value printed is false (whioch actually should be true).
How do I know that the connection is no longer valid before I fire a query.Does this isClosed method help?
Thanks
Regards
JAs
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This is pretty much the same question as you asked previously, complete with some good answers:
https://www.experts-exchange.com/questions/21121095/Checking-the-validity-of-an-Oracle-Connection.html
https://www.experts-exchange.com/questions/21121095/Checking-the-validity-of-an-Oracle-Connection.html
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can read it also at http://www.jguru.com/faq/view.jsp?EID=391332