Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling a DCOM component

Status
Not open for further replies.

Mike Lewis

Programmer
Jan 10, 2003
17,505
Scotland

Does anyone have any experience of calling DCOM code asynchronously?

I have a DCOM out-of-process server running on a remote machine. If I call one of its methods, will my calling code regain control straight away, or will it have to wait for the method to finish executing?

If the latter, is there some easy way for the caller to find out if the method has finished (other than setting up a semaphore of some kind)?

Any insights will be appreciated.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Your application will top and wait for the remote procedure to run. If you want asynchronous methods, look at Loosely Coupled Events or Queued Components in COM+.

Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports"
 

Thanks, Craig. That's just what I needed to know.

I'll check loosely-coupled and queued components. But, to save me some time, could you just tell me: Can I do it that way in a distributed environment? IOW, will I be able to run the COM+ component on a different machine on the network?

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My sites:
Visual FoxPro (www.ml-consult.demon.co.uk)
Crystal Reports (www.ml-crystal.com)
 
Yup, you absolutely can run the component on another machine....but it must be Win2K or later.

Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top