Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
WebService - DataBaseSetKey Problem
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement