Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7683831
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:53:11+00:00 2026-05-31T18:53:11+00:00

I am inheriting a project involving a Java web app whose backend is powered

  • 0

I am inheriting a project involving a Java web app whose backend is powered by an Apache httpd/Tomcat combo. The web server is being used to serve back JS, static content, and to perform general load balancing, and Tomcat is serving back JSPs via a single WAR file.

I will be receiving access to the code base later on today or tomorrow, but wanted to try and do some research ahead of time.

My question can be summed up as: how do these two work together?

  • Who first receives HTTP requests?
  • How does httpd know when to forward JSP requests on to Tomcat, or to just respond to a request itself?
  • How does httpd “pass” the request to, and “receive” the response from, Tomcat? Does it just “copy-n-paste” the request/response to a port Tomcat is listening on? Is there some sort of OS-level interprocess communication going on? Etc.

These are just general questions about how the technologies collaborate with each other. Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:53:12+00:00Added an answer on May 31, 2026 at 6:53 pm

    Who first receives HTTP requests?

    Apache, almost certainly. There could be admin processes that talk directly to Tomcat, though.

    How does httpd know when to forward JSP requests on to Tomcat, or to just respond to a request itself?

    From its configuration. The specifics will vary. It might, for instance, be using mod_jk or mod_jk2, in which case you’ll find JkMount directives in the config files, e.g.:

    JkMount /*.jsp ajp13_worker
    

    …which tells it to pass on requests at the root of the site for files matching *.jsp to the ajp13_worker, which is defined in the workers.properties file.

    Or it could be set up in a simple HTTP reverse-proxy arrangement. Or something else.

    How does httpd “pass” the request to, and “receive” the response from, Tomcat?

    It depends on the configuration; it could be HTTP, it could be AJP, or it could be using some other module.

    Does it just “copy-n-paste” the request/response to a port Tomcat is listening on?

    Sort of. 🙂 See the reverse-proxy link above.

    Is there some sort of OS-level interprocess communication going on?

    Yes. AFAIK, it’s all socket-based (rather than, say, shared memory stuff), which means (amongst other things) that Tomcat and Apache need not be running on the same machine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm inheriting a project and have to run an Apache web server (2.2.22) on
I am inheriting a project and (per the other developer's instructions) overwrote my Tomcat's
I have all my views in a project inheriting from a ViewBase class that
I am writing a project on Google App Engine, within it I have a
I created a Label control inheriting from Label WebControl in CustomLabel.vb in my project
In the near future, I will be inheriting a somewhat large project. I've been
I'm inheriting a project that has, until now, had all its artifacts maintained in
I'm looking at a db schema for a project I'm inheriting. There are many
I have a basic ASP.Net project created in Visual Studio 2008 on Windows Server
Inheriting a new project today, trying to make hundreds of warnings go away, and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.