Modifying the default Web container configuration

About this task

A Web container handles requests for servlets, JavaServer Pages (JSP) files, and other types of files that include server-side code. The Web container creates servlet instances, loads and unloads servlets, creates and manages request and response objects, and performs other servlet management tasks. The Web server plug-ins, provided by the WebSphere Application Server, help supported Web servers pass servlet requests to Web containers.

If the property to start servlets during application server startup is enabled, part of its startup process calls the Servlet.init method on its servlets when you start the Web container. Therefore, when the Web container starts and calls the init method, other components such as Naming and Work Load Management may not be fully started yet. As a result, application server related calls may not work since all of the application server components may not be ready yet. Once the application server is 'ready for e-business', it is completely ready. If application server related calls fail during Servlet.init method, you can either:
  • Start the servlet manually when the server is ready for e-business instead of starting the servlet upon startup or
  • You can choose not to make application server related calls in the servlet's init method.

The Web container is created initially with default properties values suitable for simple Web applications. However, these values might not be appropriate for more complex Web applications.

Your application is considered complex if it requires any of the following features:

Make the following configuration changes if you have a complex application:

Procedure

  1. In the administrative console, click Servers > Application servers > server_name. Then under Web container settings, click on one of the following:
    1. Web container, if your Web application requires a virtual host, other than the default_host, or requires servlet caching.
    2. Web container transport chains, if you need to reconfigure your HTTP connections.
    3. Session management, if your application requires persistent HTTP session support.
  2. If your application handles special client request loads, in the administrative console, click Servers > Application servers > server_name. Then under Additional Properties, click Thread Pools to modify your thread pool settings.
  3. If your application requires global settings for internal servlets for WAR files packaged by third-party tools, iIn the administrative console, click Servers > Application servers > server_name > Web container settings > Web container. Then under Additional Properties, click Custom Properties and enter the appropriate custom property.



In this information ...


Related concepts

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    

Terms of Use | Feedback

Last updated: Aug 29, 2010 6:22:59 PM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=vela&product=was-express-dist&topic=tweb_aov8
File name: tweb_aov8.html