Hi!
i need to implement some asynchronous call to my com+ component, but i
need it to return some values (e.g. results of sql select statement).
obviously queued components and MSMQ are out of the question...
anyone has any ideas how to implement it? or just a guideline maybe?
thank you 4 2210
Are you trying to use the asynchronous ability that COM+ proxies expose,
or do you just want to make an asynchronous call in general? If the answer
is the latter, why not just run the call on another thread? Or better yet,
create a delegate with the same signature and then make the call to your
proxy, using the IAsyncResult returned from the async call on the delegate.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"6954" <ma*********@gm ail.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Hi!
i need to implement some asynchronous call to my com+ component, but i
need it to return some values (e.g. results of sql select statement).
obviously queued components and MSMQ are out of the question...
anyone has any ideas how to implement it? or just a guideline maybe?
thank you
Nicholas
if i use delegates, can i get specific data back to the calling thread
(like with sinchronous calls), or do i just get something like "method
executed correctly" information? and could you perhaps point me to some
more documentation on that subject (delegates and iasync) if its not
too much of a problem
thanks
Nicholas Paldino [.NET/C# MVP] wrote:
Are you trying to use the asynchronous ability that COM+ proxies expose,
or do you just want to make an asynchronous call in general? If the answer
is the latter, why not just run the call on another thread? Or better yet,
create a delegate with the same signature and then make the call to your
proxy, using the IAsyncResult returned from the async call on the delegate.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"6954" <ma*********@gm ail.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Hi!
i need to implement some asynchronous call to my com+ component, but i
need it to return some values (e.g. results of sql select statement).
obviously queued components and MSMQ are out of the question...
anyone has any ideas how to implement it? or just a guideline maybe?
thank you
6954,
Take a look at the IAsyncResult interface. There should be
documentation there on how you would get a result from the async call when
you are done.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"6954" <ma*********@gm ail.comwrote in message
news:11******** *************@i 42g2000cwa.goog legroups.com...
Nicholas
if i use delegates, can i get specific data back to the calling thread
(like with sinchronous calls), or do i just get something like "method
executed correctly" information? and could you perhaps point me to some
more documentation on that subject (delegates and iasync) if its not
too much of a problem
thanks
Nicholas Paldino [.NET/C# MVP] wrote:
>Are you trying to use the asynchronous ability that COM+ proxies expose, or do you just want to make an asynchronous call in general? If the answer is the latter, why not just run the call on another thread? Or better yet, create a delegate with the same signature and then make the call to your proxy, using the IAsyncResult returned from the async call on the delegate.
Hope this helps.
-- - Nicholas Paldino [.NET/C# MVP] - mv*@spam.guard. caspershouse.co m
"6954" <ma*********@gm ail.comwrote in message news:11******* *************** @h48g2000cwc.go oglegroups.com. ..
Hi!
i need to implement some asynchronous call to my com+ component, but i
need it to return some values (e.g. results of sql select statement).
obviously queued components and MSMQ are out of the question...
anyone has any ideas how to implement it? or just a guideline maybe?
thank you
thx nick!
I read it and did some code but now i get this error: "An unhandled
exception of type 'System.Overflo wException' occurred in mscorlib.dll
Additional information: Arithmetic operation resulted in an overflow."
i'm using a delegate with matching signature of remote method. here is
following code:
MyRemoteCom.Cla ss MyCom= new MyRemoteCom.Cla ss();
MyDelegate caller = new MyDelegate(MyCo m.MyMethod);
IAsyncResult result = caller.BeginInv oke(null, null);
Thread.Sleep(20 00);
label1.Text=cal ler.EndInvoke(r esult);
this looks pretty straightforward but somehow the "endinvoke" part
throws forementioned error. The remote method is simple string
returning method with no other code. If i use sync call like:
label1.text=MyC om.MyMethod() works just fine
what could be the problem here?
thanks
Nicholas Paldino [.NET/C# MVP] wrote:
6954,
Take a look at the IAsyncResult interface. There should be
documentation there on how you would get a result from the async call when
you are done.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"6954" <ma*********@gm ail.comwrote in message
news:11******** *************@i 42g2000cwa.goog legroups.com...
Nicholas
if i use delegates, can i get specific data back to the calling thread
(like with sinchronous calls), or do i just get something like "method
executed correctly" information? and could you perhaps point me to some
more documentation on that subject (delegates and iasync) if its not
too much of a problem
thanks
Nicholas Paldino [.NET/C# MVP] wrote:
Are you trying to use the asynchronous ability that COM+ proxies expose,
or do you just want to make an asynchronous call in general? If the
answer
is the latter, why not just run the call on another thread? Or better
yet,
create a delegate with the same signature and then make the call to your
proxy, using the IAsyncResult returned from the async call on the
delegate.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m
"6954" <ma*********@gm ail.comwrote in message
news:11******** **************@ h48g2000cwc.goo glegroups.com.. .
Hi!
i need to implement some asynchronous call to my com+ component, but i
need it to return some values (e.g. results of sql select statement).
obviously queued components and MSMQ are out of the question...
anyone has any ideas how to implement it? or just a guideline maybe?
thank you
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: DotNetShadow |
last post by:
Hi Guys
I came across this article which deals with Performance Considerations
for Making Web Service Calls from ASPX Pages:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnservice/html/service07222003.asp
The article talks about 3 approaches synchronous | asyncronous | and
PrerequestHandler with asynchronous calls. I tried the sample that
came with the article and the concept proves right.
|
by: Alexander Kaplunov |
last post by:
I have two different scenarios:
1. I have an application that calls a web service and passes an
object. Web Service takes that object and does some stuff with it, which
could take some time. It seems to me that in this case it would be
appropriate to use asynchronous web service. Am I correct?
|
by: usenetaccount |
last post by:
In a newly created test app, to maximize client performance I tried to
make two SOAP method calls in tandem (the soap methods execute some
specified query), as each call includes a large amount of idle time by
the client as it waits for a query to execute and return a dataset.
As a test, I initially wrote two versions:
' // Sequential & Synchronous
Dim webobj As com.mycompany.webobject
Dim ds1 As System.Data.DataSet
Dim ds2 As...
|
by: dba123 |
last post by:
I need to perform Asynchronous Inserts using DAAB. So far I have a method
which does an insert but how can I do this Asyncronously so that it does not
affect the load on our public production website? This question is wide open
but make sure you give me some ideas in context with DAAB syntax. Some
thoughts are threading, ATLAS, etc. but I have no clue how to even approach
an Asynchronous Insert or any techniques at this point. Also, I...
|
by: Susan |
last post by:
I have a process that takes a while to run so I have it running
asynchronously so that the user can continue working. My question is that I
want to killl the process if the user changes the search parameters before
the callback method is called. Any ideas of how to do this or if it even
matters? I did not know if calling the asynch process a new time kills the
previous one or not.
Thank you for your help.
Susan
| |
by: Bishoy George |
last post by:
Hi,
I have a asp.net 2.0 web application.
I want to implement the asynchronous model through http handler in
web.config
-------------------------------------------------------------------------------------------------------------------------
My web.config file:
---------------------
|
by: jtbjurstrom |
last post by:
Bear with me because we are new to WCF and have been going through
documentation and samples trying to absorb as much as possible in a
short amount of time. Any suggestions would be much appreciated. We
would of course rather start off on the right path instead of learning
later that there's a much better and easier solution, but get stuck
with our original implementation.
We are working on designing a client server solution using WCF...
|
by: jan.loucka |
last post by:
I'm developing WinForms application in .NET 2.0 that talks to web
service. The automatically generated proxy (reference class) has got
methods for both synchronous and asynchronous invocations of the web
service methods. What I like about the asynchronous calls that they
use events. So when I call the web service operation is finished is
fires the event. So all my objects that I'm using in my client
application just subscribe to whatever...
|
by: jan.loucka |
last post by:
I'm developing WinForms application in .NET 2.0 that talks to web
service. The automatically generated proxy (reference class) has got
methods for both synchronous and asynchronous invocations of the web
service methods. What I like about the asynchronous calls that they
use events. So when I call the web service operation is finished is
fires the event. So all my objects that I'm using in my client
application just subscribe to whatever...
|
by: =?Utf-8?B?S2FseWFu?= |
last post by:
Hi,
I have to make multiple calls (about 400K) to a webservice which returns a
string. And currently it takes about a week to make all the calls. Instead of
waiting for the webservice result before i make the next call, I rather want
to make the calls and let the results comeback at its own pace. I used
Asynchronous calling and callback method, but it does not seems to work. I am
sure, asynchronous way will improve my program execution...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |