Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What advantage does an entity bean have over a sessin bean?

Answer Posted / gaurav

An entity bean represents an entity such as an employer,
student, etc. A session bean is a type of EJB (Enterprise
JavaBean) that encapsulates the logic of a business process
and business rules. Entity beans offer the following
advantages over session beans:

Persistence: Entity beans are persistent, i.e., the state
of the bean exists beyond the lifetime of the application
or the application process. There are two types of
persistence: Bean-managed and Container-managed. In Bean-
managed persistence, the code contains the calls that
access the database. In Container-managed persistence, the
EJB container generates the database calls.
Shared Access: Multiple clients can share the entity beans.
It works within the transactions as the client changes the
data.
Primary Key: Each entity bean has a unique object
identifier that enables the client to locate a particular
entity bean.
Relationship: An entity bean can relate to other entity
beans. Both CMP and BMP can be used to maintain
relationships.

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best definition for data?

971


What are the types of exceptions?

1056


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

1001


Is the milky way in a void?

964


What is an enumeration?

1065


What are the restriction imposed on a static method or a static block of code?

1058


Which programming language is best in future?

961


define the terminology association.

1102


What is getclass () getname () in java?

1145


What does arrays sort do in java?

1017


What is difference between call by value and call by reference?

995


Which container method is used to cause a container to be laid out and redisplayed in java programming?

1107


How to set the permissions to a file in java?

987


What is the collection interface?

1020


Can a constructor be made final?

1110