Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WebService - DataBaseSetKey Problem
Message
De
07/09/2007 10:24:49
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
WebService - DataBaseSetKey Problem
Divers
Thread ID:
01253007
Message ID:
01253007
Vues:
65
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform