Chapter 4: Tomcat Architecture Logger LoggerConnector Server Service

Chapter 4: Tomcat Architecture Logger LoggerConnector Server Service Engine Host Valve Valve Realm Realm Context Valve Realm Wrapper Figure 4-2: Tomcat s architecture Here, components that can be contained multiple times are denoted by a symbol that has multiple profiles, including Connector, Logger, Valve, Host, and Context. The nested relationships of the components in this architecture are parent-child in nature. This essentially means that each component may have one or more child components, and those children may have children of their own. For example, as shown in Figure 4-2 , you can have one or more Service objects as children. Each Service object may contain a single Engine and one or more Connector objects. Each Engine may have one or more Host objects as children, and so on. The Wrapper objects in the Context represent the holders for servlets and JSPs. The following sections examine each component at a high level. Chapter 5 discusses each component s configuration. The Server The Server is Tomcat itself an instance of the Web application server and is a top-level component. It owns a port that is used to shut down the server. In addition, the Server can be set in debug mode, which instantiates a version of the Java Virtual Machine (JVM) that enables debugging. Only one instance of the Server can be created inside a given Java Virtual Machine (JVM). Separate Servers configured to different ports can be set up on a single machine to separate applications so that they can be restarted independently. That is, if one Server running in a JVM were to crash, the other applications would be safe in another Server instance. This is sometimes done in hosting environments in which each customer has a separate instance of a JVM, so a badly configured/written application will not cause others to crash. The server is an implementation of the Serverinterface. The default and usual configuration is for Tomcat to implement the StandardServer object for the server.

If you looking for unlimited one inclusive web hosting plan please check unlimited web hosting website.

Comments are closed.