Link to home
Start Free TrialLog in
Avatar of VBGuru
VBGuruFlag for India

asked on

MTS -- handling global variables

I want to know how to handle shared data(in VB  global variables) in MTS.
Avatar of wizard2072098
wizard2072098

You'll have to devise some sort of fancy way of doing it, since MTS requires stateless objects that don't interact.

You'd be fighting a far tamer battle to modify your objects to pass values back and forth as arguments to procedure calls.

Besides... hasn't someone jumped on you about global variables yet??? :)

ASKER CERTIFIED SOLUTION
Avatar of cywh
cywh

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VBGuru

ASKER

Thank you, cywh for the answer.
What exactly i wanted to know is, is there any way i can use callback or event handling mechanism which is there in the DCOM.
Because i want to notify the appropriate client as soon as the information from one client is to be intemated to the other client.
I will give you the points. Let me know what you say about this.
Thanks in advance.
If I iterpret your question right you ask for som mechanism to notify the calling function or process whenever a asychronous question is asked? Hav I understood your question right?

If I understod the question the aswer might be MSMQ (Microsoft Message Que). I don't know of any better way to handle asynchronous transactions in the DCOM environment.

MSMQ ques up every transaction until it gets time from the OS to execute its task. If a computer on the network is "down" the transaction sent to that computer is also qued until the machine goes "up" again. This is actually a standard behaviour of all Message Que Systems.

Regards,
Conny Westh (cywh)