Pablo, The web server (Apache or MS IIS) serves up only static content such as HTML. Your application server on the other hand (Tomcat, Websphere, Weblogic, JRUN, Orion, etc), actually contains a compiler, which "converts" your JSP code to servlet code, and then "serves up" the resulting HTML code back to the web server (if both are configured to work together, which they should), which then hands it back up to the requesting browser. In this type of configuration, the web server does what it does best, which is server up static content, and the application server does what it does best, compile JSP code to servlet code, and then hand off the resulting HTML back to the web server.
EJB's on the other hand require their own server/container. In this case, Tomcat does not come coupled with it's own EJB container/server, so many people use JBoss, which is a free EJB container. Most commercial application packages come bundled with an EJB server, so Webspher, Weblogic, and JRUN will handle both JSP/servlets and EJB's. Commercial application servers also come with some "bells and whistles" and a friendly GUI interface which allows you to set up items such as your JDBC data source, and to deploy EJB's. Celeste Haseltine, PE MTL, Inc Dallas, TX -----Original Message----- From: Pablo Bryan [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 12, 2002 2:37 PM To: [EMAIL PROTECTED] Subject: Web Server / JSP-Servlet Container (newbie) Can someone tell me why in a production application I would need to have a web server (Apache, Jetty, etc) with an App Server (JBoss, Tomcat, etc) ? Let's say I have an app with servlets and JSP and static HTML. Would I need Tomcat and Apache or can it work just with apache? Remember I need it to be production quality. When would I need to combine apache and tomcat? or jetty and jboss? Thanks, Pablo ==========================================================================To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
