Solved

MTS -- handling global variables

Posted on 1998-11-24
4
276 Views
Last Modified: 2010-05-03
I want to know how to handle shared data(in VB  global variables) in MTS.
0
Comment
Question by:VBGuru
  • 2
4 Comments
 
LVL 1

Expert Comment

by:wizard2072098
ID: 1446685
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??? :)

0
 

Accepted Solution

by:
cywh earned 20 total points
ID: 1446686
You can use "Shared Property Manager" to use global data in MTS. This works almost like a "registry" but in RAM-memory.

Regards,
Conny Westh
0
 
LVL 6

Author Comment

by:VBGuru
ID: 1446687
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.
0
 

Expert Comment

by:cywh
ID: 1446688
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)

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Paint/Redraw window while dragging 16 78
VBS file using code from 2nd file (txt or vbs) 4 36
clicking a shape in a frame array vb6 3 45
Problem to With line 4 57
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question