Such resources are provided to the bean by the EJB server . An EJB container is generated by the tools associated to the EJB server. The container is in charge of the EB instances life cycle and persistence, and of the interaction with the transaction and security services. The deployment descriptor, containing the bean properties that may be edited at configuration time. They can be transaction-aware, stateful or stateless.
Entity beans are objects that represent data in a database.
They may be shared by several clients and are identified by means of a primary key. An EJB environment is responsible for managing the persistence of such objects. Message-driven Beans are objects that may be considered as message listeners. They implement some kind of asynchronous EJB method invocation. Transaction Management One of the main advantages of the EJB TM support for transactions is its declarative aspect, which means that transaction control is no longer hard coded in the server application, but is configured at deployment time.