Forums Register Login

difference between container and application server

+Pie Number of slices to send: Send
Gurus, I want to know how an application server differs from a container.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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...
They worship nothing. They say it's because nothing lasts forever. Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 2859 times.
Similar Threads
app'server and container
what is difference between container and application server
Please help
what is difference between container and application server
a simple question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 04:31:39.