HighTechTalks DotNet Forums  

How to queue incomming requests?

Dotnet Framework (Remoting) microsoft.public.dotnet.framework.remoting


Discuss How to queue incomming requests? in the Dotnet Framework (Remoting) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Hans
 
Posts: n/a

Default How to queue incomming requests? - 12-02-2004 , 03:33 AM






First i will try to explain what i want to do.

On the server, i have a database which queries all the "free" records.
"free" means that no client requested the record and "busy" means that the
record was send to a client.

Everytime a client request comes in, the first free record is send to the
client and its status is changed to "busy". This works great until two
client request come in at exactly the same time. Then the same record is
send to both clients. Is it possible to handle one request at a time, so the
first request is handled immediatly and the second request is queued until
the first request is finisched?

I'm trying with singleton Remoting

I'm using .NET 1.1 and MS Access 2000



Reply With Quote
  #2  
Old   
Timofey Kazakov
 
Posts: n/a

Default Re: How to queue incomming requests? - 12-03-2004 , 01:25 PM






Hello, "Hans"

Quote:
Is it possible to handle one request at a time, so the
first request is handled immediatly and the second request is queued until
the first request is finisched?

I'm trying with singleton Remoting

You can inherit your server object from ContextBoundObject class and mark it with SynchronizationAttribute.


Reply With Quote
  #3  
Old   
Hans
 
Posts: n/a

Default Re: How to queue incomming requests? - 12-04-2004 , 05:21 AM



I searched for the answer a long time. This is working great. Thanks a lot.

If you know a good site about remoting, please tell me.




"Timofey Kazakov" <userstvo (AT) mail (DOT) ru> wrote

Hello, "Hans"

Quote:
Is it possible to handle one request at a time, so the
first request is handled immediatly and the second request is queued until
the first request is finisched?

I'm trying with singleton Remoting

You can inherit your server object from ContextBoundObject class and mark it
with SynchronizationAttribute.




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 - 2013, Jelsoft Enterprises Ltd.