Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 13 total
Thread Solution needed...
Tue, Aug 25 2009 12:57 PMPermanent Link

Uli Becker
Hi,

I am looking for a solution for this scenario:

1. A Mail-Client (appA) is running (local access to EDB).
2. Another application (appB) needs the account-data from the
mail-client in order to import them into his database.

How can I access the accounts-table from appB?

I tried to create a temporary database in appB and just ask the user of
appB where the acctounts-table is located on disc. This works as long as
appA is not running, otherwise I get

 Error #300 Cannot lock the database Temp for exclusive access.

when trying to create the database, which is what I expected.

Any solution for this? That's why I tried just to copy the (very small)
table into the directory of the appB-data. But in this case there is a
version-number mismatch and the table cannot be opened by appB. (Thread:
Create & Copy).

Thanks. Uli
Tue, Aug 25 2009 1:54 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< I am looking for a solution for this scenario:

1. A Mail-Client (appA) is running (local access to EDB).
2. Another application (appB) needs the account-data from the mail-client
in order to import them into his database.

How can I access the accounts-table from appB? >>

Can appB find out the configuration path for appA ?  If so, then just set
the TEDBEngine.UseLocalSessionEngineSettings property to True in appB and
have the normal session set up as normal with the same engine configuration
settings, and a second session set up for access to the configuration
path/settings for appA.  If appB is a remote application, then all the
easier since you won't need to change anything for it.

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Aug 25 2009 2:35 PMPermanent Link

Uli Becker
Tim,

> Can appB find out the configuration path for appA ?

That's the problem. It can't. In addition appA can run either in c/s or
local mode depending on the user's choice.

Uli
Tue, Aug 25 2009 3:26 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< That's the problem. It can't. In addition appA can run either in c/s or
local mode depending on the user's choice. >>

Without the configuration file path for appA, it is impossible for appB to
connect to a database that is defined in appA's configuration file.

Do you have control over appA ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Aug 25 2009 3:44 PMPermanent Link

Uli Becker
Tim,

> Without the configuration file path for appA, it is impossible for appB to
> connect to a database that is defined in appA's configuration file.

I guessed that.

> Do you have control over appA ?

Yes, I have. ( I am the programmer Smiley

Uli
Tue, Aug 25 2009 4:28 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< Yes, I have. ( I am the programmer Smiley >>

Good. SmileyCan you possibly change appA so that it stores its configuration
information in a global .ini file or a specific registry key ?

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Aug 26 2009 2:28 AMPermanent Link

Uli Becker
Tim ,
> Can you possibly change appA so that it stores its configuration
> information in a global .ini file or a specific registry key ?

Yes, that's a possible solution. Thank you.

Uli
Wed, Aug 26 2009 4:02 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Tim / Uli


For my benefit in case I ever have to do it with the information in two different sessions how do you get it from one to the other?

Roy Lambert
Wed, Aug 26 2009 11:40 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Roy,

<< For my benefit in case I ever have to do it with the information in two
different sessions how do you get it from one to the other? >>

He's not transferring the session information directly, he's using a medium
of exchange (registry, .ini) that allows to different sessions to read and
use the same configuration information.  The "read and use" part depends
upon your application, but the EDB Manager is a good example of how to do it
with an .ini file.

--
Tim Young
Elevate Software
www.elevatesoft.com

Wed, Aug 26 2009 11:42 AMPermanent Link

Uli Becker
Tim,

works great. I just store

ConfigPath
SessionType
Hostname

in the registry and with these informations the access is very easy. Thanks.

Uli
Page 1 of 2Next Page »
Jump to Page:  1 2
Image