MDBs process the task
in an asynchronous way within the container, taking advantage of all the container??™s built-in
features. As soon as the request message is processed, the MDB can place a response on the
Approaches to Bu ld ng H gh Performance Web Appl cat ons
Copyright ?© 2007, Idea Group Inc. Copying or distributing in print or electronic forms without written permission
of Idea Group Inc. is prohibited.
response queue. Servlet requests can keep polling the response queue for the status of the
request submitted to let the end user know the results of the asynchronous task.
Business Grid Computing
Web application architectures often require batch processing of some of the maintenance
tasks. It is not uncommon to have developers rewriting code with stand-alone applications
or scripts to perform these operations outside of the Web container. This results in code
redundancy and, obviously, such implementation loses the application server container
advantages. Advanced J2EE containers such as IBM WebSphere Extended Deployment,
allow asynchronous task processing by allowing batch, long-running or compute-intensive
tasks to run within the container; the best application is chosen for this task based on resource
utilization.
Pages:
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325