File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB and other Java EE Technologies and the fly likes Ejb Containers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Ejb Containers" Watch "Ejb Containers" New topic

Ejb Containers

Ranch Hand

Joined: Feb 14, 2002
Posts: 31
Does anyone know how many Ejb Containeres "usually" are in typical J2EE/Ejb Server?
Are there multiple instances of Ejb Containers running all Ejbs or just one containet running all Ejb instances?
I know that different vendors might implement this in different way but if someone could tell how it's usually done.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

I know of no benefit whatsoever to running more than one EJB container per appserver. I do know that WebLogic recommends running at most no more appservers than you have CPUs if performance is the consideration.
In a clustering system, you have one "virtual" appserver and multiple machines each running an individual appserver, but even then, one EJB container (at most) per machine suffices.
The only justification for running multiple servers would be to isolate systems in case of failure or test vs. production systems, but even there you'd normally only see one EJB container (max) per appserver.

An IDE is no substitute for an Intelligent Developer.
Ranch Hand

Joined: Feb 14, 2002
Posts: 31
Thanks for answering!!!
I thought also, that there are one container, but
wasn't sure. Older Ejb books does not usually
cover this informartion clear enought.
I'm practicing to Sun's Exams and trying also to clear myself these kind of issues.
I agree. Here's the link:
subject: Ejb Containers
It's not a secret anymore!