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
What is the use of @resource?
can we stop the execution of a method before completion?
What is stateless programming?
How is consistency maintained by Stateful Session through transaction updates ?
How many ejb objects are created for a bean?
Why do we use ejb?
Which is more beneficial: CMP or BMP?
What are the callback annotations for the stateless bean?
Can an ejb send asynchronous notifications to its clients?
What do you mean by timer service and where it is used?
Is it possible to have threading in ejb?
How does the server decide which beans to passivate and activate?
What are the advantages of ejb?
What is ejb context?
What is session bean?