Solved

MTS -- handling global variables

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 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