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 Difference between server and container 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 "Difference between server and container" Watch "Difference between server and container" New topic
Author

Difference between server and container

Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

Hi,

Can anyone tell the difference between the server and container?

Thanks and Regards,
Narendranath


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Mudi Appu
Ranch Hand

Joined: Apr 06, 2005
Posts: 44
Container refers to the component that manages lifecycle of servelet/JSP or EJB. Server refers to the infrastructure which contains those containers.
For an example
JBOSS server is contained with an EJB container.
TOMCAT server is contained with servelet container/JSP engine and etc.


SCJP 2
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

Thanks for what u said. But EJB container and EJB server are synonymous I think. In that case can't we interchangebly use container and server?

Regards,
Narendranath
Mudi Appu
Ranch Hand

Joined: Apr 06, 2005
Posts: 44
The EJB server must provide one or more EJB containers. Hence EJB container and EJB server are NOT synonymous. Please correct me if I am wrong.
Ken Loh
Ranch Hand

Joined: Feb 16, 2005
Posts: 190
Hi Kanishtha, thank you for the fruit for thought. Now I know what to say when asked of the same question.

About the synonymity, I wonder if it is valid if, (and only if) the server has only one container. Hmmm, debatable isn't it ? :roll:

Another frequent question is: Is the "hardware" server synonymous with the "software" server. E.g. I'd often been compelled to say that they were synonymous when a server box contains only one server application (e.g. http server) to clients that couldn't tell between a server box and a loudspeaker, let alone the servers we are talking about. Telling them the actual thing would be equivalent to forcing them to spend a night with Hannibal Lecter. It would sure scare them off. It'd nearly scared me off !

IT life is sprinkled with confusion and paradoxes, isn't it ?

Originally posted by kanishtha Kramalekhakha:
The EJB server must provide one or more EJB containers. Hence EJB container and EJB server are NOT synonymous. Please correct me if I am wrong.

[ April 19, 2005: Message edited by: Ken Loh ]
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

As far as I what I read, EJB server and EJB container are synonymous.

Here is the piece of text taken from EJB by EdRoman

The server provider is the same as the container provider. Sun has not yet differentiated these (and they may never do so). We will use the terms EJB container and EJB server interchangeably in this book.
Mudi Appu
Ranch Hand

Joined: Apr 06, 2005
Posts: 44
OK. So as far as your world is hardly bound into that book EJB server and EJB container are synonymous for you. Enjoy your own world!
 
jQuery in Action, 2nd edition
 
subject: Difference between server and container