Developing servlet applications using asynchronous request dispatcher

Web modules can dispatch requests concurrently on separate threads. Requests can be dispatched by the server or client.

Before you begin

For additional information about the AsyncRequestDispatcherConfig and the AsyncRequestDispatcher interfaces, review the com.ibm.websphere.webcontainer.async package in the application programming interfaces (API) documentation. The generated API documentation is available in the information center table of contents from the path Reference > APIs - Application Programming Interfaces.

Review the asynchronous request dispatcher application (ARD) design considerations topic before completing the following steps.

About this task

Concurrent dispatching can improve servlet response time. If operations are dependant on each other, do not enable asynchronous request dispatching, therefore, select Disabled. Concurrent dispatching might result in errors when operations are dependant. Select Server side to enable the server to aggregate requests dispatched concurrently. Select Client side to enable the client to aggregate requests dispatched concurrently.

Procedure

  1. Logically separate resource intensive operations.
  2. Develop servlets that use an asynchronous request dispatcher to include these operations.
  3. Enable asynchronous request dispatching on an application server.
  4. Deploy the application in an application server that has asynchronous request dispatching enabled.
  5. Select an aggregation type for the application that needs ARD.
  6. Optional: Configure the AsyncRequestDispatcherWorkManager work manager that is used for the request dispatch threads.
  7. Restart the application server.

What to do next

Restart the modified applications if already installed or start newly installed applications to enable ARD on each application.



In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic Task topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Feb 6, 2014 8:11:25 PM CST
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=matt&product=was-nd-mp&topic=twebard
File name: tweb_ard.html