This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes two connector ports in server.xml. what it means? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "two connector ports in server.xml. what it means?" Watch "two connector ports in server.xml. what it means?" New topic

two connector ports in server.xml. what it means?

yamini nadella
Ranch Hand

Joined: Apr 13, 2004
Posts: 257
In my server.xml I have two connector tags with different port numbers. What is the meaning of this? Below is part of my server.xml

Thanks in advance

<Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" debug="0" connectionTimeout="20000" disableUploadTimeout="true" />
<Connector port="8009" enableLookups="false" redirectPort="8443" debug="0" protocol="AJP/1.3" />
Sivasundaram Umapathy
Ranch Hand

Joined: Aug 10, 2002
Posts: 360
The first one is the HTTP Connector which implements HTTP protocol and used for servicing client requests.

The second one is AJP Connector element which is used for communicating with a web connector via the AJP i.e Apache Java Protocol. You can use this when you want to integrate Tomcat into an Apache installation so that Apache handles the static content contained in the web application and also may be for utilizing Apache's SSL processing.

Co-Author - SCMAD Exam Guide - ISBN:9780070077881
Author - Java certification success, Part 4: SCEA
I agree. Here's the link:
subject: two connector ports in server.xml. what it means?
It's not a secret anymore!