BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Checking Interbase server availability from IBX and ISAPI

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker
View previous topic :: View next topic  
Author Message
Raigo
Guest





PostPosted: Thu May 17, 2007 12:13 am    Post subject: Checking Interbase server availability from IBX and ISAPI Reply with quote



Delphi 7 ISAPI-WebBroker application. connecting to remote Interbase
database over IBX.

problem is when database server is unavailable for network problems etc.
how to check from application it is there? Another problem is that if DB
server has been restarted the ISAPI application also needs restart.

is there a way to check DB server availability from code? how?

I have in WebModule.BeforeDispatch event
if IBDataBase1.Connected=false then IBDataBase1.Connected:=true;

but this won't help against DB server restart.
Back to top
Jason Southwell
Guest





PostPosted: Mon May 21, 2007 2:25 pm    Post subject: Re: Checking Interbase server availability from IBX and ISAP Reply with quote



Quote:
Delphi 7 ISAPI-WebBroker application. connecting to remote Interbase
database over IBX.

I have in WebModule.BeforeDispatch event
if IBDataBase1.Connected=false then IBDataBase1.Connected:=true;
but this won't help against DB server restart.

In the ADO components, I handle the OnAfterExecute event and check for an
error code. If I find the code that means disconnected, then I disconnect
the database component so that the next access will restart it.

Don't know how to do it in IBX though but there might be something similar.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Isapi-WebBroker All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.