• Post Reply Bookmark Topic Watch Topic
  • New Topic

tomcat ejb help  RSS feed

 
feroz muhamed
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...
 
Tonny Tssagovic
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!