This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

tomcat ejb help

 
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, I am totally confused with relating apache and tomcat.I 've only the idea that apache is a webserver tomcat also.but tomcat has the support for java technologies.Is it needed to connect tomcat with apache for setting up a webserever.one more question is tomcat has the EJB container? please help me...
 
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well Apache is a web server .. serving files through the HTTP protocol.
Tomcat is a web container and helps you make dynamic web pages with Jsp and servlets, just like techs php, asp, cold fusion, perl cgi and so on.
Usually Apche sits before Apache to reply to users requests; if the request involves only static data like simple html pages or images, then it can handle it itslef, if the request involves generating dynamic stuff, then it forwards the request to Tomcat to deal with it..
Tomcat supports only servlets and JSPs.. For EJBs you will need an EJB container (usually called an application container) like JBoss JOnas or comercial ones weblogic and websphere
 
feroz muhamed
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks tonny
now I got it.but still the doubt, what is the advantage of connecting tomcat with apache, i think tomcat alone is enough and more am i correct?
 
Tonny Tssagovic
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As I said, you might have some static data, and Apache web server is good att it.. it will only forward the request to tomcat if there is need for dynamic data ...Most web pages have a lots of static data like images, and it is therofre a good idea to have Apache at the front.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!