Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Re : why do we need weserver(Apache), Application Server (weblogic)

 
megala
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai

There is a situation.. why do we need webserver and application server both for one project.. can we deploy JSP pages in webserver, if not what is the difference..
People are telling, we can deploy our jsp pages to webserver that webserver will contact the Application server for data..
can anyone pl. help why do we need these two servers and what are the files we can deploy to which server..
thanks in advance..
 
Asuthosh Borikar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Per my understanding, you use the webserver to process requests from clients. An Application Server is an entirely different beast, which is used as the business logic tier. What this means is that the Servlets and JSPs will be in the webserver and the EJBs(Session as well as Entity, which encapsulate the business logic) will be in the Application Server. The Application Server provides some primary services such as transaction management, persistence, security, object distribution etc. essential to mission-critical distributed applications and a webserver can not provide these services. Hence, the need for a webserver and an application server.
In a nutshell, your Servlets, JSPs and HTML pages should be in the webserver, while your EJBs should be in your application server.
Hope this helps!
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"megala",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.
 
megala
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai Frank,
i would like to put my last also but , now i don't find the plcae to put the same.. in profile place i don't find any option to change the same.. can you pl. send me the details..
Thasnks in advance..
Originally posted by Frank Carver:
"megala",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.

 
Frank Lin
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, Application server runs on top of HTTP server that handles HTTP request from the client browser. It serves the static HTML page request on its own, and delegates any servlet/jsp request to application server. The dynamic HTML generated by servlet/jsp then comes back to HTTP server to serve the client request. Of course, some application servers, like Tomcat, has built-in HTTP server function, which does not necessarily require an additional HTTP server. But in Tomcat's documentation, it states that it doesn't handle the static HTML pages as effectively as Apache, so for that reason, you might want both Apache and Tomcat.
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To change your name at the Java Ranch, just create a new name the same way you created the old one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic