Types of EJB

By: aathishankaran  

Types of EJB:


There are three types of Enterprise Java Beans namely:


v    Session Beans

v    Entity Beans

v    Message driven beans


1) Session Beans

 Session beans are intended to allow the application author to easily implement portions of application code in middleware and to simplify access to this code.

Session beans are divided into two types:

a)     Stateless Session Bean

b)    State full Session Bean

            a)    Stateless Session Bean

                 Stateless Session Bean is intended to be simple and “light weight” components.  The client, thereby making the server highly scalable, if required, maintains any state.  Since no state is maintained in this bean type, stateless session beans are not tied to any specific client, hence any available instance of a stateless session bean can be used to service a client.  

        b)    State full Session Bean

                State full Session Bean provides easy and transparent state management on the server side.  Because state is maintained in this bean type, the application server manages client/bean pairs.  State full session beans can access persistent resources on behalf of the client, but unlike entity beans, they do not actually represent the data.

Archived Comments

1. Very helpful. thank you very much.
View Tutorial          By: java beans at 2016-01-06 10:48:40

2. what is this where is rest of bean explanation
View Tutorial          By: aaaaaab at 2015-05-05 05:03:47

3. Incomplete article; Singleton session bean? And remaining explanation? At least you have to give si
View Tutorial          By: vaibhav sakpal at 2013-08-29 07:35:37

4. thank you man.
View Tutorial          By: Hariharan at 2012-08-03 01:39:16

5. i appreciate the article for being straight to the point
View Tutorial          By: shey-poun at 2011-12-14 06:39:51

6. what about the remaining explanation......do anything neat and complete........
View Tutorial          By: raki at 2011-11-07 10:47:25

7. Awesome............
View Tutorial          By: Amol at 2011-06-11 05:32:49

8. Bad article ! What about the explanation of Message driven beans and Entity beans ???? Dont write su
View Tutorial          By: Manish at 2011-05-24 04:44:03

9. good work, it gives the important informations
go ahdead ! thank you
form morocco

View Tutorial          By: khalid at 2010-11-09 13:03:12

10. This is a good written article!
It gave me a clearer view of session beans.

View Tutorial          By: Anders Branderud at 2010-01-10 03:24:25

11. this article is very good for the beginners. I am a beginner and I really got something useful after
View Tutorial          By: manoj kumar palbabu at 2009-12-02 10:44:04

12. pretty good explanation
View Tutorial          By: Prithwi at 2009-11-26 07:28:33

13. Excellent
View Tutorial          By: Dev at 2008-08-01 02:41:25

Most Viewed Articles (in EJB )

Latest Articles (in EJB)

Comment on this tutorial