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 remote interface in ejb?

620


What are the components of session beam?

715


A client wants to preserve the reference to the ejbhome object of an enterprise bean instance and use it later. Which of the following can be serialized for this purpose?

623


What is session facade in ejb?

648


How to generate ejb stubs in eclipse?

840






What is ejb bean in java?

690


What do you mean enterprise javabeans (ejb) container?

685


What are stateless applications?

669


What is ejb ql?

655


How to increase ejb transaction timeout in weblogic?

652


How to import ejb project in eclipse?

669


What is Session Bean Interface?

645


What is enterprise javabeans (ejb) container?

619


Which of the recommended practices to be performed in the ejbpassivate() method of a stateful session bean?

702


Is soap stateless or stateful?

632