Chapter 12: Tomcat and IIS Web server Application

Chapter 12: Tomcat and IIS Web server Application servers (Tomcat) AJP 1. IIS 2. ISAPI filter 3. ISAPI configuration files (workers.properties, uriworkermap.properties) Figure 12-17: Distributed Architecture with IIS and Tomcat on different servers Finally, notice that once you begin partitioning your architecture into Web server and application server configurations, you have paved the way for a heterogeneous system, so even though you use IIS for the Web server, your application server can be Unix/Linux based. Distributing Web and Application Server Deployments Let s start with a simple example and build on it. Consider Figure 12-17 , where the IIS is on one server and a Tomcat worker is running on a different server. How would you configure IIS and Tomcat to work with this configuration? The client server design of the AJP13 protocol makes this quite simple to configure. First, look at the software stack on each sever. The Web server, which has IIS running on it, will also have the isapi_redirect.dlland the configuration files (uriworkermap.propertiesand workers .properties). Note that the JDK and the Tomcat binaries are not required on the Web server. The Application server will have the full Tomcat install, along with the JDK. The AJP13 connector must be configured on the application server and a Tomcat worker must be running on a known port on the application server. Also note that if you have multiple application servers with Tomcat workers distributed across these application servers servicing the same Web application, you would want to duplicate the Web application files across all these servers. Next, look at the configuration changes required. From a conceptual perspective, it is probably instructive to look at a non-distributed configuration where everything is on one box and then examine what needs to be done to split it up into a distributed configuration. Let s look at a specific example, where a single worker called my-tomcat-workeris servicing the examplesapplication. This is a good example because you already went through the steps required to install this specific configuration on a single box in an earlier section. Now look at the changes that would be required if you were to install this configuration on a Web server and an application server: 1. Install the software on the appropriate servers. 2. Install the software as shown in the previous figure. 1. Tomcat instance 2. AJP Connector 3. The web application (servlets, JSPs)

For reliable and cheap web hosting services please check javaweb hosting website.

Comments are closed.