In EBs the DB state is more consistent than SBs why?



In EBs the DB state is more consistent than SBs why?..

Answer / john

The Entity Bean is directly interacting with the database.
AS and when new transactions are made they are recordeed in
the database to take care of persistence.

In case of session beans all transactions are maintained in
a session. It is not necessary that the user has to submit
these trasnactions to the DB. The user may choose not to
submit them and the trtasnactiosn in the session will be
lost. This can also occur whe the user closes the browser
without submitting or when the session expires due to a time
out.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More EJB Interview Questions

What are the various types of entity beam?

0 Answers  


can u explain about design patterns like singleton,builder,factory

0 Answers   EdgeSoft,


How enterprise beans will handle concurrent and loopback calls on entity beans?

1 Answers   Wipro,


What is Enterprise JavaBeans (EJB)?

0 Answers  


Difference between javaBeans and Enterprise JavaBeans?

1 Answers   Indotech, Tech Mahindra,






What is rmi and ejb in java?

0 Answers  


What’s the difference between hibernate and ejb 3?

0 Answers  


ejb session beans and entity beans?

1 Answers  


What are the basic and subtypes of enterprise java beans (ejb)?

0 Answers  


What is a stateless session?

0 Answers  


what is SessionBean, EntityBean?

2 Answers  


Basic types of Enterprise JavaBeans?

4 Answers   TCS,


Categories