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?