Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Multiple Engine Instances
Wed, Oct 2 2013 6:35 AMPermanent Link

Richard

I know it is probably a stupid question as it does state in the manual that ElevateDB only supports one TEDBEngine instance per application but it there any way around this?

I want to connect to two servers at the same time, a local and a C/S.
Wed, Oct 2 2013 7:02 AMPermanent Link

Raul

Team Elevate Team Elevate

Not at all and that works fine - what you need is just 2 separate
sessions (one local and one remote).

The local session talks to the embedded engine and remote session talks
to the engine in the edbsrvr.

Note that you still need to honour session and thread separation so if
you have multiple threads you likely end up with lot more than 2 sessions :

http://www.elevatesoft.com/manual?action=viewtopic&id=edb2&product=rscppwin32uni&version=XE4&topic=Multi_Threaded_Applications

Raul


On 10/2/2013 6:35 AM, Richard wrote:
> I know it is probably a stupid question as it does state in the manual that ElevateDB only supports one TEDBEngine instance per application but it there any way around this?
> I want to connect to two servers at the same time, a local and a C/S.
>
Wed, Oct 2 2013 7:05 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Richard


>I know it is probably a stupid question as it does state in the manual that ElevateDB only supports one TEDBEngine instance per application but it there any way around this?
>
>I want to connect to two servers at the same time, a local and a C/S.

I don't think its a stupid question - but then you should see some of the one's I've asked Smiley

You don't need to EDBEngines to have local & C/S simultaneously - you need two EDBSessions.

I've not done this but I think in the engine set UseLocalSessionEngineSettings to True. For the two sessions set the SessionType of one to stLocal and the other to stRemote then adjust the other bits as needed.

Roy Lambert [Team Elevate]
Wed, Oct 2 2013 7:20 AMPermanent Link

Richard

Duh! my bad.  God you fellas are fast.  I thought I could quickly jump back in to answer my own question.

As I moved past the engine and looked at Sessions in the manual the answer was there.  I had been confused with the ConfigPath etc. in TEDBEngine
Image