Solved

MTS -- handling global variables

Posted on 1998-11-24
4
275 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

864 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now