• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Types of servers

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i am trying to find out how many different types of servers ?
In a typical web application what are the servers involved and how are they different?
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

how many different types of servers ?


As many as you can think of and implement. Some common ones are mail servers, web servers, application servers and database servers.

In a typical web application what are the servers involved and how are they different?


A web server, obviously, and optionally one or more of the ones mentioned above. A Wikipedia lookup will get you started about what each of the various server types does, and how it works.
 
sudheer raj shetty
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Suppose i create a web application(MVC model, J2EE), then i guess i would be using a web server , application server and database server.
Where do i store the *.html or *.jsp files?? ... web server ??
where do i keep the class files(C of mvc) of the application???
where do i keep the class files(M of mvc) of the application???
and how about the database??

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sudheer,

You will be using an application server and a database server .You should be using a web server when no business logic is needed webservers are not capable of executing business logics .so, all the files including .html and all will be in application server and you will be have to write code and configure your application server to connect to database server and manage it .Hope it gives you some insight.

Thanks,
Abhisek
 
sudheer raj shetty
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
so i as i understand i need to WRITE CODE to configure application server to connect to database server and manage it . right ??
IS the application server ,web server and database server physically at different LOCATION??? (even though it does not really matter for a programmer, just curious) or is it just a differents part in A server.



 
Ulf Dittmer
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

so i as i understand i need to WRITE CODE to configure application server to connect to database server and manage it . right ??


Not necessarily. If you're using JNDI to obtain the connection then it might be a change in a config file (or screen).

IS the application server ,web server and database server physically at different LOCATION??? (even though it does not really matter for a programmer, just curious) or is it just a differents part in A server.


Both are possible. For sizable applications or loads the database will most often be on a separate machine, because database servers are optimized differently than web servers or app servers.
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


You should be using a web server when no business logic is needed webservers are not capable of executing business logics


Not sure what you mean by this. HTTP servers can execute business logic via CGI, Servlet Containers can run any Java code they like and IIS can run any number of languages it supports - all of these are Web Servers after a fashion.

I'd take Ulf's advice. Have a read on the background of what each of these things is supposed to do, then "what goes where" becomes easier to understand.
 
Dash Abhisek
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No you don't need to write codes to configure application server and manage it . you manage it through the adminstrative console of your application server, but you need to write code to do jndi lookup .

The application server and database server are two different servers they can be in the same machine or can be in two different machines also.They are not part of the same server.
 
The overall mission is to change the world. When you've done that, then you can read this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic