Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WebService - DataBaseSetKey Problem
Message
From
07/09/2007 10:24:49
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
WebService - DataBaseSetKey Problem
Miscellaneous
Thread ID:
01253007
Message ID:
01253007
Views:
66
Hello,

I have a Webservice, that is used from several customers. Each customer has its own Database or in mm its own DatabaseSet.

When the webservice gets an request, I switch the DatabaseSetKey of the DatabaseMgr to the DatabaseSet of the Customer:
mmAppBase.DatabaseMgr.DatabaseSetKey = customerX

Now getting more and more simultaneos requests I run into the problem that sometimes CustomerX is getting data from customerY.

What I think is happening is, that I set the global
mmAppBase.DatabaseMgr.DatabaseSetKey property and before the business object is getting the data from CustomerX, customerY is requesting data and switches mmAppBase.DatabaseMgr.DatabaseSetKey to CustomerY.

My question now can this be true?
Any idea how to override GetDataAccessObject() in the business objects, that dao.DatabaseSetKey = mmAppBase.DatabaseMgr.DatabaseSetKey;
is not getting the DatabaseSetKey from mmAppBase.DatabaseMgr?
Any other idea how to solve this problem?

With kind regards
Thomas Wetterer
Next
Reply
Map
View

Click here to load this message in the networking platform