• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.


 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I guess everyone has an angle. Fine, what do you want? Just know that you cannot have this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic