Java Reference
In-Depth Information
The EJB Container sits between an EJB Server and EJBs. An
EJB Server can have one or more EJB Containers and each
container can manage one or more components. The EJB
Container manages the EJBHome and EJBObject
implementations. Via these objects, the container decorates
Enterprise Bean classes and provides various services such as:
• Life cycle management
• Naming
• Object Distribution
• Persistence
• Security
• Transactions
• Concurrency
The EJB Container also does resource management through
Instance Pooling and swapping (in the case of Stateless
Session Beans) and Passivation / Activation, in the case of
Stateful Session Beans and Entity Beans.
Enterprise Java Bean Vs No Beans
To accommodate a growing number of users, you may need
to distribute an application's components across multiple
machines. The enterprise beans of an application can not only
run on different machines, but also the location will remain
transparent to the clients. Transactions are required to ensure
Search WWH ::




Custom Search