HighTechTalks DotNet Forums  

Asynchronous COM+ Method Calls?

Dotnet Framework (Component Services) microsoft.public.dotnet.framework.component_services


Discuss Asynchronous COM+ Method Calls? in the Dotnet Framework (Component Services) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Asynchronous COM+ Method Calls? - 12-24-2007 , 02:34 PM






If I have a COM+ method that returns results from a long-running database
query, is there a way to create a version of the method that uses one of the
..NET asynchronous calling patterns? Assume that I can use any technology I
like.

My interest is in creating asynchronous web pages for use in a high-volume
web application. It's a bad idea to block the ASP.NET worker threads by,
for instance, blocking on a COM+ method call.
--
--------------------------------------------------------------------------------
John Saunders | MVP – Windows Server System – Connected System Developer



Reply With Quote
  #2  
Old   
Brian Muth
 
Posts: n/a

Default Re: Asynchronous COM+ Method Calls? - 12-27-2007 , 11:35 AM






Quote:
If I have a COM+ method that returns results from a long-running database query, is there a way to create a version of the method
that uses one of the .NET asynchronous calling patterns? Assume that I can use any technology I like.

My interest is in creating asynchronous web pages for use in a high-volume web application. It's a bad idea to block the ASP.NET
worker threads by, for instance, blocking on a COM+ method call.
Since Windows 2000, COM has supported asynchronous method calls. See http://msdn.microsoft.com/msdnmag/issues/0400/async/.

Note that the implementation for the asynchronous architecture is confined to the proxy, so this should work just fine with COM+
objects.

Personally, I have never used this support, preferring instead to launch a worker thread internal to the COM+ object to do my
asynchronous work. Obviously you can do the same.

Brian





Reply With Quote
  #3  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Re: Asynchronous COM+ Method Calls? - 12-27-2007 , 05:18 PM



"Brian Muth" <bmuth (AT) mvps (DOT) org> wrote

Quote:
If I have a COM+ method that returns results from a long-running database
query, is there a way to create a version of the method that uses one of
the .NET asynchronous calling patterns? Assume that I can use any
technology I like.

My interest is in creating asynchronous web pages for use in a
high-volume web application. It's a bad idea to block the ASP.NET worker
threads by, for instance, blocking on a COM+ method call.

Since Windows 2000, COM has supported asynchronous method calls. See
http://msdn.microsoft.com/msdnmag/issues/0400/async/.

Note that the implementation for the asynchronous architecture is confined
to the proxy, so this should work just fine with COM+ objects.

Personally, I have never used this support, preferring instead to launch a
worker thread internal to the COM+ object to do my asynchronous work.
Obviously you can do the same.
Thank you very much. Not only do I not remember seeing that particular
article; I also don't remember hearing any mention of async COM calls.
"There must be something wrong with them", because they're too good to be
true!
--
--------------------------------------------------------------------------------
John Saunders | MVP – Windows Server System – Connected System Developer




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.