• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between container and application server  RSS feed

 
Pushker Chaubey
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gurus, I want to know how an application server differs from a container.
 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In J2EE, you have two types containers.

1. Web Container - a Java program which maintains life cycle of Servlet/JSP and delegate call to it.

2. EJB Container - A Java Program which maintains life cycle of EJBs and delegate call to it.


Application Server - Server which provides both WEB and EJB container.
 
Pushker Chaubey
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Prabhu,

one more query...Can an application server be scattered across two or more physical servers. I mean can I have web container on one server and ejb container on another server and both these containers being the part of same application server.
 
Pratheep Nair
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you are asking for is a cluster. You can create multiple application server instances across different physical machines and manage them under a single cluster. An end user will access the cluster not the individual application servers. cluster1=appsvr1+appsvr2. The fact that your application is spread across multiple servers becomes transparent to the end user.
However, I am not sure why you want to split the containers. I don't know of any application server that supports this. When you create a server, it comes with a set of predefined attributes. I don't know any application server that will ask you questions like, "Okay, now where do you want the ejb container to be?".
Just imagine if you are installing an EAR which has a web component (WAR) and some ejb components (ejb-jar) in an application server instance, server1. Do you want the WAR and the EJB to go into two different servers? That's confusing...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!