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?

Answers were Sorted based on User's Feedback



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

Answer / uppi

Entity Bean is a Java class which implements an Enterprise
Bean interface and provides the implementation of the
business methods. There are two types: Container Managed
Persistence (CMP) and Bean-Managed Persistence (BMP).
Session Bean is used to represent a workflow on behalf of a
client. There are two types: Stateless and Stateful.
Stateless bean is the simplest bean. It doesn't maintain any
conversational state with clients between method
invocations. Stateful bean maintains state between invocations.

Is This Answer Correct ?    19 Yes 5 No

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

Answer / tarunam verma

entity beans are generally used for database interaction
thus provide various EJB services like
transctions,persitence etc which using the seesion bean
will be manully handeled by the programmer while
interacting with Db,session beans are basically for
processing the logic not for DB entities

Is This Answer Correct ?    15 Yes 2 No

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

Answer / 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

More Core Java Interview Questions

Linked List reverese program

2 Answers   Bally Technologies,


What happens when heap memory is full?

0 Answers  


How do we make a class serialize?

3 Answers   Syntel,


How will you measure that int takes up only 32 bits in memory?

2 Answers   Rolta,


Write an algorithm program in java for the following question.. In a VLSI design techniques,they used rectangles to design circuits. EVery rectangle is to be placed according to x,y coordinates. Check whether or not two rectangles overlap each other. Here overlapping of rectangles is acceptable, if 1) one rectangle intersect with other. 2) one rectangle fully covers other. The time of algorithm should not exceed o(n logn).

0 Answers  


How do you add an element to an arraylist in java?

0 Answers  


what is the final keyword denotes in java?

0 Answers   IBS,


Can a double value be cast to a byte?

3 Answers  


What are the types of loops in Java, and how are they used?

2 Answers  


Is array a class in java?

0 Answers  


What is JVM ?

4 Answers   Phantom Technologies, TCS,


How do you insert a line break?

0 Answers  


Categories