Board index » delphi » IBEvent?

IBEvent?

Two computer,
Computer A installed a IBDataSet, and it linked with computer B
Computer B installed a IBDataBase.
If for some reason, the communication loss, ie, the RJ45 connector
disconnect, or the IBDatabse is shut down.
When the client in Database B aware of the disconnection?

And, when the connection resume, the IBDatabase.Open cannot resume the
opeartion, ie, DataSet.appyupdate(0) fails...
Is it possible to do the reconnection?

Thanks all...

 

Re:IBEvent?


Quote
"alex" <is_...@hotmail.com> wrote:

>Two computer,
>Computer A installed a IBDataSet, and it linked with computer B
>Computer B installed a IBDataBase.
>If for some reason, the communication loss, ie, the RJ45 connector
>disconnect, or the IBDatabse is shut down.
>When the client in Database B aware of the disconnection?

The next tiem you do something that will use the connection.

Quote
>And, when the connection resume, the IBDatabase.Open cannot resume the
>opeartion, ie, DataSet.appyupdate(0) fails...
>Is it possible to do the reconnection?

No, your transaction context was rolledback when the conenction was
lost to the server.
Quote
>Thanks all...

Re:IBEvent?


In the case, is there any method, when the connection loss, the computer
IBDataSet aware of the disconnection?

Re:IBEvent?


Quote
"alex" <is_...@hotmail.com> wrote:
>In the case, is there any method, when the connection loss, the computer
>IBDataSet aware of the disconnection?

No unless you regularly try things like TestConnection.  Generally
you will just know when the next attempt to use the conenction
is done in the app.

Other Threads