+

Search Tips   |   Advanced Search

Use the asynchronous response servlet


JAX-WS includes an asynchronous response servlet, which is used within the appserver environment to receive responses for JAX-WS requests that are invoked asynchronously.

JAX-WS provides support for invoking Web services using an asynchronous client invocation by using either a callback or polling model. Both the callback model and the polling model are available on the Dispatch client and the dynamic proxy client. When a JAX-WS client that is running within the application server environment uses an asynchronous client invocation, the responses are received by the asynchronous response servlet. To learn how to use the asynchronous client invocation model, read about invoking JAX-WS Web services asynchronously.

The asynchronous response servlet is used within an application server to handle incoming asynchronous responses. The servlet uses the same secure and unsecure HTTP ports assigned to the appserver. The servlet starts automatically when the appserver starts. Because the asynchronous response servlet does not perform role-based authorization checks, only user authentication checks are performed.

The asynchronous response servlet supports both the HTTP and HTTPS protocols. Since the servlet inherits the SSL configuration of the appserver, configuring the appserver also configures the servlet. The asynchronous response servlet is not affected by the custom HTTP and SSL port properties used by the asynchronous response listener and only runs on the application ports for the appserver.

 

  1. Determine if we want the JAX-WS client to use the HTTP or HTTPS transport mechanism.

  2. Set the Web container transport chains to modify the SSL configuration of the appserver. The servlet inherits these settings. Read about configuring transport chains to learn how to configure the Web container transport chains.

 

Results

The asynchronous response servlet is configured to enable the JAX-WS clients to receive asynchronous responses on the HTTP or HTTPS transport protocol.

 

Related tasks


Use HTTP to transport Web services
Invoking JAX-WS Web services asynchronously
Running an unmanaged Web services JAX-WS client
Use the asynchronous response listener
Set transport chains