• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client - Server

 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Sometimes I really get confused with the meaning on "server" when somebody refers to "client-server" in the java environment.
I really appreciate some light on "server".
Thanks
 
Travis Gibson
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In a nutshell client/server is broken down as follows:
1.) Client - The machine making the request (i.e. You when the URL for www.javaranch.com is typed in the address field of your browser and then you press enter.)
2.) Server - The machine that processes the request and returns data to the Client. (i.e. www.javaranch.com returns it's homepage based on your request).
They are often referred to as N-tiers. Java Servlets and JSP are basically mid-tier between the two.
Please correct me if I am wrong,
Travis M. Gibson
SCJP
 
Vladan Radovanovic
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Travis is correct however You should think of it in terms of "software".
Server is software(program) running on some computer that provides services to other software/programs.
Often the computer that a server software runs in is reffered as "server".
For example Web "server" is software that is running on some computer and awaits and accepts calls from "clients" and serves them HTML pages.
Vladan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic