Subject | Remote server disconnect |
---|---|
Author | Robert Martin |
Post date | 2004-06-11T19:03:21Z |
Hi, All!
This is one of those "There must be an easier way!" things.
I am connected to a remote DB via a TIB_Connection. Every thing works
fine.
Now I pull my eithernet cable from the back of my computer, simulating a
remote
server reboot.
make a request and get an exception.
so far so good.
now I plug back in my eithernet connection and make another request. I
get another exception, and will keep getting them until I disconnect and
reconnect the database.
the only way around this that I can figure is to write an error handler
that fires off a thread that trys and retrys to reconnect the database
when an error of this type is encountered.
Am I missing a setting or component that will do this for me?
Thanks in advance
Rob.
This is one of those "There must be an easier way!" things.
I am connected to a remote DB via a TIB_Connection. Every thing works
fine.
Now I pull my eithernet cable from the back of my computer, simulating a
remote
server reboot.
make a request and get an exception.
so far so good.
now I plug back in my eithernet connection and make another request. I
get another exception, and will keep getting them until I disconnect and
reconnect the database.
the only way around this that I can figure is to write an error handler
that fires off a thread that trys and retrys to reconnect the database
when an error of this type is encountered.
Am I missing a setting or component that will do this for me?
Thanks in advance
Rob.