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
Re: Web Server / JSP-Servlet Container (newbie)
Pablo, Apache is recognized as a pretty high performance web server. Its designed to serve static content very fast and efficiently. Most jsp/servlet containers cannot match apache's performance in serving static content. Therefore, it is advantageous for environments that demand higher performance to use both apache and the container together. This gives you sort of a best of both worlds environment. Also, don't mix your containers: Tomcat is a jsp/servlet container, JBoss is an EJB container. Very different. However, using this strategy you could get a very high performance J2EE environment by combining free elements: apache + tomcat + jboss. Branden Root Web Developer Portent Interactive [EMAIL PROTECTED] -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Pablo Bryan Sent: Thursday, September 12, 2002 12: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
Re: Web Server / JSP-Servlet Container (newbie)
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
Re: Web Server / JSP-Servlet Container (newbie)
Adding to it, some advantages Of Apache with Tomcat: 1/ Apache is faster & better when serving static content such as images 2/ You get more error handling ability with apache (ie, when tomcat goes down for releases, etc, Apache gets a 500 error and can display a polite notice rather than nasty error pages) 3/ You get all the other stuff that apache does: userdir, modspeling, cgi, ssi etc etc etc 4/ https. i don't know if any certificate signing authorities do certs for java/tomcat (probably) but its very easy for mod_ssl or apache-ssl 5/ you can confuse your colleagues even more with arcane configurations 6/ you can (theoretically) do sticky load balancing with mod_jk across multiple tomcat instances Regards, Vikramjit Singh, GTL Ltd. Ph. 7612929-1059 > -Original Message- > From: Branden Root [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 12, 2002 12:57 PM > To: [EMAIL PROTECTED] > Subject: Re: Web Server / JSP-Servlet Container (newbie) > > > Pablo, > > Apache is recognized as a pretty high performance web > server. Its designed > to serve static content very fast and efficiently. Most jsp/servlet > containers cannot match apache's performance in serving > static content. > Therefore, it is advantageous for environments that demand higher > performance to use both apache and the container together. > This gives you > sort of a best of both worlds environment. Also, don't mix > your containers: > Tomcat is a jsp/servlet container, JBoss is an EJB container. Very > different. However, using this strategy you could get a very high > performance J2EE environment by combining free elements: > apache + tomcat + > jboss. > > Branden Root > Web Developer > Portent Interactive > [EMAIL PROTECTED] > > > -Original Message- > From: A mailing list about Java Server Pages specification > and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Pablo Bryan > Sent: Thursday, September 12, 2002 12: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 > === 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