• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

link web server with application server

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic