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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of @resource?

540


can we stop the execution of a method before completion?

2492


What is stateless programming?

587


How is consistency maintained by Stateful Session through transaction updates ?

604


How many ejb objects are created for a bean?

532






Why do we use ejb?

515


Which is more beneficial: CMP or BMP?

588


What are the callback annotations for the stateless bean?

486


Can an ejb send asynchronous notifications to its clients?

526


What do you mean by timer service and where it is used?

506


Is it possible to have threading in ejb?

542


How does the server decide which beans to passivate and activate?

523


What are the advantages of ejb?

537


What is ejb context?

534


What is session bean?

537