The EJB server provides an environment that supports the execution of applications developed
using Enterprise JavaBeans™ (EJB) components. It manages and coordinates the allocation of resources to the applications.
Enterprise beans typically contain the business logic for a J2EE application.
The EJB server must provide one or more EJB containers. An EJB container manages the enterprise beans contained within it. For each enterprise bean, the container is responsible for registering the object, providing a remote interface for the object, creating and destroying object instances, checking security for the object, managing the active state for the object, and coordinating distributed transactions. Optionally, the container can also manage all persistent data within the object.
Enterprise JavaBeans technology supports both transient and persistent objects. A transient object is called a
session bean, and a persistent object is called an entity bean.
A session bean exists only for the duration of a single client/server session. A session bean performs operations such as accessing a database or performing calculations. Session beans can be transactional, but
normally are not recoverable following a system crash. Session beans can be stateless, or they can maintain conversational state across methods and transactions. A session bean must manage its own persistent data.
More on session object
persistence (new window).
An entity bean is an object representation of persistent data maintained in a permanent data store, such as a database.
An entity object can manage its own persistence, or it can delegate its persistence to its container.
See:
SpringSource launches Java application server Computerworld, MA - May 5, 2008 By Chris Kanaracus May 5, 2008 (IDG News Service) SpringSource, maker of the Spring Framework for Java development, has announced a new application server...
Reinventing the Java application server CMSWatch, MD - May 7, 2008 Just when you thought the Java application server market was pretty well saturated (if not in actual decline), along comes a brand new entrant with ...
Expert One-on-One J2EE Design and Development (Programmer to Programmer) by Rod Johnson Average Customer Review: based on 33 reviews. Customer Review: I thoroughly enjoyed reading this book, particularly well-thought out design guidelines for developing J2EE application with or without EJB. The author introduced several best practices particularly the concepts and usage of Spring and Hibernate based j2ee development is quite helpful. In addition to this book, I find patterns and b...
Core J2EE Patterns: Best Practices and Design Strategies (2nd Edition) (Core Series) by Deepak Alur, Dan Malks, John Crupi Average Customer Review: based on 40 reviews. Customer Review: This book is about using patterns for the J2EE platform, using best practices to design applications that use JSP, Servlet, EJB components, and JMS technologies, preventing reinvention of the wheel when it comes to design and the J2EE platform, and finally identifying bad practices in existing designs and refactoring those designs. ...
Core Security Patterns: Best Practices and Strategies for J2EE(TM), Web Services, and Identity Management (Core Series) by Christopher Steel, Ramesh Nagappan, Ray Lai Average Customer Review: based on 32 reviews. Customer Review: This is a great book - by far the best security design book for Java and J2EE (including Java SE 6 and Java EE 5) I have read to date. When I first heard about my coworkers talking about this book, I thought "oh great, another J2EE book!" Much to my surprise, this book is not just a how-to security API or patterns recipe book but mu...
Expert One-on-One J2EE Development without EJB by Rod Johnson, Juergen Hoeller Average Customer Review: based on 28 reviews. Customer Review: By now a classic, this book eloquently expressed how the Corba component design committees came up with an EJB specification that was not an ideal cornerstone for all J(2)EE applications. Although very fit for selected purposes the early EJB specs had to evolve to EJB 3 to really leverage the power of Java. Fundamentals of component...