JavaDeploy
SiteMap
JSP - Servlets
JDBC
EJB Concepts
Entity Beans
Entity Beans
«Prev
Next»
Entity Beans
EJB Distributed Transactions
Overview EJB Transactions
Transactions Remote Objects
Management Distributed Transactions
Java Transaction API
Client Managed Transaction
Bean Managed Transactions
Container Managed Transactions
Bean interactions Transaction Controls
Session Beans Transactions
EJB Transaction Exception
Choosing Differen Management Schemes
EJB Distributed Transaction
Entity Bean Components
Entity Bean Architecture
Entity Bean Characteristics
Primary Key Object Identity
Locating Entity Bean
Bean Managed Persistence
Container Managed Persistence
Entity Bean Life Cycle
Entity Bean Conclusion
Client View Bean
Creating Entity Instance
Find Bean using Key
Comparing Entity Instances
Entity Bean Client Conclusion
Bean Managed Persistence
Entity Bean Life Cycle - Quiz
Entity bean's persistence management and lifecycle
Each question is worth one point. Please select the best answers for check boxes and best answer for radio buttons.
1.
In container-managed persistence, which of the following facts are true?
Please select all the correct answers.
A.
The bean knows nothing about the how the data is stored.
B.
The variables in the bean are private.
C.
The deployer sets up how the variables in the bean map to the persistent store.
D.
The container extracts the primary key from the instance variables.
2.
In bean-managed persistence, which one of the following situations causes the
ejbStore()
callback method to be called?
Please select the best answer.
A.
Just before the transaction manager invokes commit
B.
Just after the transaction manager invokes begin
C.
Just after the transaction manager invokes commit
D.
Just after the transaction manager commits the transaction
3.
What advantage does an entity bean have over a session bean?
Please select the best answer.
A.
Entity bean data survives crashes.
B.
An entity bean represents non-persistent data.
C.
It creates its own JAR file during deployment.
D.
You get authentication code without having to write any.