46

Can anyone describe

  • What is component in Tomcat and what is role of it in Tomcat server?

  • What is Coyote?

  • What is Catalina?

Piyush Ghediya
  • 1,494
  • 1
  • 13
  • 16
  • 7
    **Tomcat** - is a web server, which is having the following components: - Catalina - Servlet container name - Jasper - JSP engine - Coyote - HTTP connector - Cluster - is load balancer to manage large scale application. – Premraj Apr 29 '16 at 09:47
  • 2
    I beg to differ. StackOverFlow is not for _this_ kind of question, because it isn't programming-related, and as specified in the closure notice, is too broad; it _is_ however perfectly appropriate to ask questions here that "can be answered easily" if SO doesn't already have the answer. Because there's no easier way to _find_ the answers, than via SO. – Auspex Mar 16 '17 at 13:29
  • This question is not particularly broad, apart from the first point which is a bit confusing. The second two can be comfortably answered in a couple of sentences each. – Steve Bennett Jun 21 '18 at 00:27
  • Gotta go with GhostCat on this one. The fact that this question can be answered in a single wikipedia link suggests one should have tried there (or similar) first. If one didn't understand something there, *that* would be a useful question. – FreeText Jan 10 '19 at 15:49

1 Answers1

47

Catalina is Tomcat's servlet container. Catalina implements Sun Microsystems' specifications for servlet and JavaServer Pages (JSP). In Tomcat, a Realm element represents a "database" of usernames, passwords, and roles (similar to Unix groups) assigned to those users. Different implementations of Realm allow Catalina to be integrated into environments where such authentication information is already being created and maintained, and then use that information to implement Container Managed Security as described in the Servlet Specification

Coyote is a Connector component for Tomcat that supports the HTTP 1.1 protocol as a web server. This allows Catalina, nominally a Java Servlet or JSP container, to also act as a plain web server that serves local files as HTTP documents.

Coyote listens for incoming connections to the server on a specific TCP port and forwards the request to the Tomcat Engine to process the request and send back a response to the requesting client. Another Coyote Connector, Coyote JK, listens similarly but instead forwards its requests to another web server, such as Apache, using the JK protocol. This usually offers better performance.

a3.14_Infinity
  • 4,713
  • 5
  • 34
  • 62