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
Is it possible to write two ejb’s that share the same remote and home interfaces, and have different bean classes? If so, what are the advantages/disadvantages?
What do you mean by re-entrant? Can you say that session beans as re-entrant? Can entity beans be specified as re-entrant?
What is an entity and its types?
What are the various types of entity beam?
How can a CORBA object, accessed from a EJB?
can we stop the execution of a method before completion?
What’s the difference between hibernate and ejb 3?
Why do we need ejb?
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?
Elucidate callback in ejb?
What is ptp model?
What is Session Bean Interface?
List down the steps for the demonstration of ejp persistence mechanism.
Write down the steps for the creation of stateless ejb.
How to invoke ejb from java client?