Types of EJB

By: aathishankaran Emailed: 1608 times Printed: 2077 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

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.


EJB Home | All EJB Tutorials | Latest EJB Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(10)


1. View Comment

Excellent

View Tutorial          By: Dev at 2008-08-01 02:41:25
2. View Comment

pretty good explanation

View Tutorial          By: Prithwi at 2009-11-26 07:28:33
3. View Comment

this article is very good for the beginners. I am a beginner and I really got something useful after reading this article.
Thanks very much and plse elaborate some more things and execution procedures of ejb.


View Tutorial          By: manoj kumar palbabu at 2009-12-02 10:44:04
4. View Comment

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
5. View Comment

Bad article ! What about the explanation of Message driven beans and Entity beans ???? Dont write such articles if you would just give half information !

View Tutorial          By: Manish at 2011-05-24 04:44:03
6. View Comment

Awesome............

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

what about the remaining explanation......do anything neat and complete........

View Tutorial          By: raki at 2011-11-07 10:47:25
8. View Comment

i appreciate the article for being straight to the point

View Tutorial          By: shey-poun at 2011-12-14 06:39:51
9. View Comment

thank you man.

View Tutorial          By: Hariharan at 2012-08-03 01:39:16
10. View Comment

Incomplete article; Singleton session bean? And remaining explanation? At least you have to give simple examples like shopping cart, online shopping...etc

View Tutorial          By: vaibhav sakpal at 2013-08-29 07:35:37

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by aathishankaran
Web Security Issues
The Web User's Perspective
Server-side plug-Ins
The best way to avoid security vulnerabilities with new server
JavaScript Security
Window Object
Working with Status Bar Messages
Retrieving a Portion of a String
Referencing Windows
Math Object
Frame Object
Document Object
Closing Windows
Built-in Object in Javascript
Textarea Object

More Tutorials in EJB
EJB 3 Entities
Web services basics
Required Classes/Interfaces That Must Be Provided for an Enterprise JavaBeans Component
Difference Between Session and Entity Beans
Difference Between Stateful and Stateless Session Beans
Managing Security in EJB
EJB Entity Beans
Types of EJB

More Latest News
Most Viewed Articles (in EJB )
Difference Between Stateful and Stateless Session Beans
Types of EJB
Required Classes/Interfaces That Must Be Provided for an Enterprise JavaBeans Component
Difference Between Session and Entity Beans
EJB 3 Entities
EJB Entity Beans
Managing Security in EJB
Web services basics
Most Emailed Articles (in EJB)
Types of EJB
Difference Between Stateful and Stateless Session Beans
EJB Entity Beans
Difference Between Session and Entity Beans
Required Classes/Interfaces That Must Be Provided for an Enterprise JavaBeans Component
Managing Security in EJB
Web services basics
EJB 3 Entities