Through this section you will learn the various aspects of EJB like what is an Enterprise Bean, what is EJB container, benefits of Enterprise Beans, when to use Enterprise Beans, types of Enterprise Beans.
What is Enterprise Beans
A Java EE component is called an Enterprise Beans which implements the EJB technology and runs inside an EJB container. Enterprise Beans are the server side component where the application's business logic is encapsulated. The business logic can be explained as, it is line of statement called code which is written for completing the requirements of application.
What is EJB Container
EJB container is a specification within the Application Server that runs the Enterprise Beans. Services provided by the EJB container is System-level services. In such type of services it provides the transaction and security to its enterprise beans. In addition they also provides for the Resource and life cycle management, remote accessibility, concurrency control, collision etc.
Benefits of Enterprise Beans
Generally, Enterprise beans is used for creating large, distributed applications. This is because of various reasons these are as follows :
When to use Enterprise Beans
Enterprise Beans should be used in any of the following requirements that an application is required :
Types of Enterprise Beans
Commonly the Enterprise Beans is of two types :
You may read in detail about EJB 3.0 from here http://www.roseindia.net/ejb/
Recommend the tutorial