Fail safe connection
Posted: Sat 21 Mar 2009 15:34
Hello
I need a way to find out that a PgDac connection is/was down. Unfortunately, what I am currently experiencing this is that after short network connection loss, the next query raises an exception (Socket error on read / Socket error on write) and in case of protocoll pv20, all further queries raise an exception.
I don't see the OnConnectionLost working and my alerters are not re-registered after a reconnect even with AutoRegister.
I have basically no way of finding out that a reconnect happened. I need to be notified about this event and re-register events and call some application-specific initialization queries.
How do I build a bullet-proof application with PgDac?
I need a way to find out that a PgDac connection is/was down. Unfortunately, what I am currently experiencing this is that after short network connection loss, the next query raises an exception (Socket error on read / Socket error on write) and in case of protocoll pv20, all further queries raise an exception.
I don't see the OnConnectionLost working and my alerters are not re-registered after a reconnect even with AutoRegister.
I have basically no way of finding out that a reconnect happened. I need to be notified about this event and re-register events and call some application-specific initialization queries.
How do I build a bullet-proof application with PgDac?