Entity Beans   «Prev  Next»

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.