JavaDeploy
SiteMap
JSP - Servlets
JDBC
EJB Concepts
Entity Beans
Bean Managed Persistence
«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
Callbacks EJB Remove - Quiz
Container callbacks
Each question is worth one point. Select the best answer or answers for each question.
1.
What is it usual to do in the method
setEntityContext()
?
Please select the best answer.
A.
Nothing
B.
Confirm the instance was created
C.
Allocate resources required by the instance during its lifetime
D.
Store the primary key
2.
Which of the following statements are true for
ejbActivate()
for entity beans?
Please select all the correct answers.
A.
The instance is retrieved from secondary storage.
B.
The instance allocates any resources required.
C.
The container can call
ejbActivate()
at any time.
D.
Before invoking
ejbActivate()
on an instance, the container takes it from the pool and associates with a specific entity object identity.
3.
When is
ejbStore()
invoked?
Please select the best answer.
A.
Anytime the container wants to invoke it
B.
Just prior to a transaction being committed
C.
Just after the instance variables are updated by a business method
D.
Never