Please clarify this to me. I have to connect to a DB2 DataBase. I am creating connection object first and using that object to do various transactions. I am creating connection in the constructor of my class.
My problem is, When my database crashes and immediately recovers to normal state.(I will not know whether DB is crashed). Then I do a query, after this, I am getting the following error:
com.ibm.db2.jcc.a.DisconnectException: A communication error has been detected. Communication protocol being used: T4Agent.sendRequest(). Communication API being used: OutputStream.flush(). Location where the error was detected: Broken pipe. Communication function detecting the error: *. Protocol specific error codes(s) TCP/IP SOCKETS DB2ConnectionCorrelator: AC16011C.DDBE.060910093948. Can anyone suggest how I can rectify it. Or at least is there any way to know that my DB is restarted? Please Help me.