blob: 875f851a8d6e3b503729ca8a9ffeba45c028610f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
This demo illustrates the use of Asynchronous Message Invocation (AMI)
and Asynchronous Message Dispatch (AMD).
To run the demo, first start the server:
$ java Server
In a second window, start the client:
$ java Client
The demo invocation can either have a short response time or require a
significant amount of time to complete. For the long running request
the client uses AMI and the server uses AMD plus a worker thread to
process the request. While a long request is processing, short
requests are still able to be processed and more long requests can be
queued for processing by the worker thread.
|