Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Automatic reconnect with EDBServer...
Fri, Jan 8 2010 3:07 PMPermanent Link

Uli Becker
Hi,

I have an application which is running unattended and connected to an
EDBServer.
Normally I use OnSessionRemoteReconnect to check if the connection still
exists and then display a messagebox and close the application.
In this case that wouldn' work (it's a server for medical images).

Is there a possibility to reconnect to the server programatically even
if the server has been restarted meanwhile? In this case trying to
reconnect results in an error "The sessionID # doesn't exist any more...".

How do you handle this?

Regards Uli
Fri, Jan 8 2010 5:23 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< Is there a possibility to reconnect to the server programatically even if
the server has been restarted meanwhile?>>

You can't do so and retain the state of the session, no.  The session has
been removed from the server, so the only way to correct the problem is to
close down the remote session in the application, and then reconnect it.
However, this will mean that you must shut down all active database forms,
etc. and then re-establish the state.

--
Tim Young
Elevate Software
www.elevatesoft.com

Sat, Jan 9 2010 4:40 AMPermanent Link

Uli Becker
Tim,

> You can't do so and retain the state of the session, no.  The session has
> been removed from the server, so the only way to correct the problem is to
> close down the remote session in the application, and then reconnect it.

OK, thank you.

> However, this will mean that you must shut down all active database forms,
> etc. and then re-establish the state.

Could you elaborate this?
What do you mean by "shut down"?

I tried this:

1. Reconnect the remote session: ok
2. Open all tables again: ok
3. Preparing all queries again: EDatabaseError: "Operation cancelled".

Uli
Mon, Jan 11 2010 11:36 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< Could you elaborate this?
What do you mean by "shut down"? >>

Set the TEDBSession.Connected property to False, and then back to True
again.

<< 1. Reconnect the remote session: ok >>

What does the "Reconnect" entail ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Jan 13 2010 8:14 AMPermanent Link

Uli Becker
Tim,

> What does the "Reconnect" entail ?

I just set connected = true. That obviously was not enough. Setting
connected first to false and then to true works.

Now I am getting some other errors but I have to investigate that
further first before asking in detail.

Thanks.

Uli
Image