Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > How can I queue requests for an XML service?

Thread Tools

How can I queue requests for an XML service?

Jerry H.
Posts: n/a
I want to set up a XML service that will act as a middle tier between
several different client apps and a rather expensive and outdated ODBC

Currently, wehave several machines with an particular ODBC client
installed so that these machines can access a UNIX accounting systems's
core tables directly. But the problem is that we have only 3 access
license; in other words, while we're free to install the ODBC on as
many machines as we like, only 3 programs can actually be connected to
the UNIX db at any given moment; attempts to go about that result in
failed calls.

So, what we'd like to do is introduce an XML service that uses a single
ODBC client seat, and then all other apps would be upgradeed to use the
XML service.

My question is this: how do I set up some kind of FIFO within the XML
service, so that it can queue multiple requests from any number of
applications. Is this taken care of automatically by IIS, or will IIS
attempt to open any many connections to the ODBC as it can, rather than
one at a time?

Reply With Quote
Josh Twist
Posts: n/a
I think there might be a number of approaches you could take..

- write your own thread pool where you can queue items from each
request and limit the maximum number executing to the appropriate
amount (you maybe able to use Jon Skeet's threadpool available here:

- ADO.NET uses connection pools. Maybe you can adjust the size of the
connection pool to 1 (or 3 or whatever makes most sense)?

This would be the easiest solution as you wouldn't have to do very
much, though you may run into problems with Timeouts

- Have a look at MSMQ (Microsoft's Message Queueing technology). I'm
not sure your requirement would be a standard use of MSMQ, but you
maybe able to tweak some settings leverage it to achieve what you need.

- A very full solution might use a combination of technologies like
this example:

- get some more licences...

Good Luck


Reply With Quote

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Program blocked in Queue.Queue.get and Queue.Queue.put Kris Python 0 01-04-2012 03:46 PM
Is Queue.Queue.queue.clear() thread-safe? Russell Warren Python 4 06-27-2006 03:03 PM
web requests and mobile requests Fernando Arámburu ASP .Net 1 04-08-2005 07:13 PM
Re: queue the requests bruce barker ASP .Net 1 06-08-2004 08:16 PM