Solved

MTS -- handling global variables

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

707 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

20 Experts available now in Live!

Get 1:1 Help Now