473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

asynchronous callback component

We have an asp.net application that will also use MSMQ. When a client makes
a request, we want to check several databases and put each response in MSMQ.
We don't want the client to wait for all responses to come back. We were
wondering if there is some component that will sit on the client and listen
for call backs from the the server. We are also concidering using AJAX to
poll MSMQ every 5 seconds and show any new responses. Has anyone had any
experience with this?

Apr 3 '07 #1
3 1405
in general the server can not open a port to the client. you can write a
java applet (or active/x component) that holds open a port to the server
and listens for messages. but this tis up resources. the more common
approach is ajax polling.

-- bruce (sqlwork.com)

CLEAR-RCIC wrote:
We have an asp.net application that will also use MSMQ. When a client makes
a request, we want to check several databases and put each response in MSMQ.
We don't want the client to wait for all responses to come back. We were
wondering if there is some component that will sit on the client and listen
for call backs from the the server. We are also concidering using AJAX to
poll MSMQ every 5 seconds and show any new responses. Has anyone had any
experience with this?
Apr 3 '07 #2
As Bruce indicated, you have a disconnected client which is essentially a web
page sitting in the user's browser, so you are limited to client-side
javascript.

The MS ASP.NET AJAX framework has a Timer control, and the Anthem.Net AJAX
framework has a similar control. These basically do a Javascript setTimeout
call that makes a behind - the scenes call to your page's method that would
do a receive on the MessageQueue object to get and process the results.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"CLEAR-RCIC" wrote:
We have an asp.net application that will also use MSMQ. When a client makes
a request, we want to check several databases and put each response in MSMQ.
We don't want the client to wait for all responses to come back. We were
wondering if there is some component that will sit on the client and listen
for call backs from the the server. We are also concidering using AJAX to
poll MSMQ every 5 seconds and show any new responses. Has anyone had any
experience with this?
Apr 3 '07 #3
I'm trying to do the same thing...
Are there any good examples on how to do the Active/x inside of the Web
client-side?

"bruce barker" wrote:
in general the server can not open a port to the client. you can write a
java applet (or active/x component) that holds open a port to the server
and listens for messages. but this tis up resources. the more common
approach is ajax polling.

-- bruce (sqlwork.com)

CLEAR-RCIC wrote:
We have an asp.net application that will also use MSMQ. When a client makes
a request, we want to check several databases and put each response in MSMQ.
We don't want the client to wait for all responses to come back. We were
wondering if there is some component that will sit on the client and listen
for call backs from the the server. We are also concidering using AJAX to
poll MSMQ every 5 seconds and show any new responses. Has anyone had any
experience with this?
Apr 19 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: John | last post by:
I will be setting up an asynchronous receive routine for a TCP Socket. If the receive callback method is not called within some time interval, I want to cancel the use of the callback method. ...
1
by: Sai Kit Tong | last post by:
I have to interface managed application with my legacy dll. I have employed the wrapper approach but I have to deal with the asynchronous callback from the legacy dll, which likely goes through a...
4
by: Chris | last post by:
Hello, With asynchronous programming : Why does the callback-function (running in a worker thread) may not update the state of a control on the main-form ? The docs say that you must use a...
1
by: Natalia DeBow | last post by:
Hi, I am working on a Windows-based client-server application. I am involved in the development of the remote client modules. I am using asynchronous delegates to obtain information from...
1
by: MSDN | last post by:
Does anyone know how to do this with a readline statement or equivalent method? Thanks in advance. Chris
7
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason...
2
by: archana | last post by:
Hi all, I am processing asynchronous web request with setting timeout using RegisterWaitForSingleObject. On beginwebrequest i am sending address of one callback which i want to execute when...
0
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 ...
3
by: =?Utf-8?B?bWs=?= | last post by:
Hi everyone, I need to refactor some of our processes using the asynchronous programming model. I have defined a couple of arrays of delegates to pipline the asynchronous invocations through...
2
by: Morgan Cheng | last post by:
In asynchronous model, BeginXXX method returns a IAsnycResult-derived object. IAsyncResult.AsyncWaitHandle will be signaled when the asynchronous job is complete; and BeginXXX method has a argument...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.