An embodiment of the invention provides an ability to configure the dispatch
policy
in an application or transaction server. For servlets and JSP's this is configured
on a per-URL (Uniform Resource Locator) basis, RMI and EJB it is configured on
a per-method basis. Available dispatch options include the ability to execute the
request in the same thread that read the request or to enqueue it on a queue which
feeds a pool of worker threads. Using this configuration one can control various
quality of service parameters of the requests. Requests may be expedited by executing
them directly in the thread which read them, thus skipping the queue. Alternatively,
some requests may be throttled by assigning them to a queue which is tended by
only a limited number of threads.