Sriram Sharma wrote:The explanations were pretty clear.
Thanks for that Mr.Tyagi...
Now, I have few more questions...
1. Cant we deploy war or ear in web servers? I believe we can!
<darthvader> No this cannot be done. web servers are inherently used to furnish only static content in java/j2ee world</darthvader>
2. When I googled for this, came across with some interesting information. It goes here in the next line.
"The Web server can directly reference WAR files, and there is no need to extract them back into directories and files in order to deploy them" - How is it that a webserver direcly accessess a war file? What is it that is happening here?
<darthvader> Not sure what you mean by "directly reference". But i will add this, web servers can be made smart enough to understand what request to furnish and what to send to app server to process. In apache this is accomplished by uriworkermap.properties & modJK. </darthvader>
3. Can't we just do with app server alone? Why is a web server needed at all? If webserver can hold static contents, cant the app servers do that as well
<darthvader> You can, nothing stops you from using the appserver alone, but in case of big enterprise application you can offload the appserver by using a web server as a front end. </darthvader>
Somebody.. please help me out in this.
Regards,
Sriram