This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Types of servers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Types of servers" Watch "Types of servers" New topic
Author

Types of servers

sudheer raj shetty
Greenhorn

Joined: Sep 02, 2009
Posts: 16
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?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42364
    
  64
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.


Ping & DNS - my free Android networking tools app
sudheer raj shetty
Greenhorn

Joined: Sep 02, 2009
Posts: 16
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??

Dash Abhisek
Ranch Hand

Joined: Jul 20, 2008
Posts: 63
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

Joined: Sep 02, 2009
Posts: 16
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
Marshal

Joined: Mar 22, 2005
Posts: 42364
    
  64
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.
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


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.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Dash Abhisek
Ranch Hand

Joined: Jul 20, 2008
Posts: 63
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Types of servers