Meaningless Drivel is fun!
The moose likes Tomcat and the fly likes link web server with application server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "link web server with application server" Watch "link web server with application server" New topic

link web server with application server

Rejoy Bhaskar

Joined: Nov 24, 2008
Posts: 4

i have one question, how can i link the web server to an application server and link the application server to the database server.
and can somebody tell me how effective this kind of combination will be over using a application server with a database server. if possible the pro's and con's.

Thanking you in advance.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Welcome to JavaRanch.

Tomcat has a Connector for hooking it up to Apache (or IIS). The details are linked from that page. Whether or not a web server/app server combination (like Apache httpd + Tomcat) makes more sense than just a standalone Tomcat is impossible to say in general, as it depends so much on your particular needs.

A long time ago people would use a web server alongside Tomcat because Tomcat's performance at serving static files sucked. That's no longer the case, and Tomcat will serve static files with quite good performance.

Using httpd or IIS is indicated if they provide features you need that Tomcat simply doesn't have, e.g. ASP support in IIS, or some Apache module like mod_python in the case of httpd. httpd can also provide useful other features like SSL termination and load balancing for a cluster of Tomcats.

As to databases, the "link" generally consists of a JDBC connection over TCP/IP. Any JDBC tutorial will tell you how to use that.
I agree. Here's the link:
subject: link web server with application server
It's not a secret anymore!