OCPJP 6.0-81% | Preparing for OCWCD
http://www.certpal.com/blogs/cert-articles | http://sites.google.com/site/mostlyjava/scwcd |
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
bharat b narang wrote:Question 1: Do we keep Servlet and/or JSP files in WebServer or Application Server
Application container has seperate Web and application container within. We usually keep Servlet / JSP in web container part of Application Server.
Many a times, we keep html and static images/files on Apache Server. Apache Server will pass the request to Application container if it si for dynamic content like jsp/servlet.
Question 2: Do we deploy.war file in WebServer and .ear file in Application Server ? If so, How do they communicate ?
We usually bundle our application as EAR if this has some application container component like ejb in it.
In that case, EAR contains, EJB jar / other files and JSP/Servlet WAR. All my WAR related stuff gets deployed on web server and EJB related stuff on Application container. If it is requeired to have communication between Web Server to Application Server, we shall need to call those services explicitly.
shiva pandey wrote:
Webserver can execute only web applications i,e servlets and JSPs and has only a single container known as Web container which is used to interpret/execute web applications
Consider Paul's rocket mass heater. |