Distributed Objects   «Prev  Next»

EJB container Services - Quiz

Each question is worth one point. Select the best answer or answers for each question.
 
1. Which of the properties in the list below are unique to Enterprise JavaBeans but not for JavaBeans?
Please select all the correct answers.
  A. They are components.
  B. A container manages them.
  C. More than one of them can be combined in a single program (not application).
  D. They live on the server side of an application.
  E. They can be part of a transaction.

2. Consider the diagram below, where clientA invokes the methods on instance BeanB, and BeanD (another bean instance in the same container) invokes methods on BeanB. In terms of the semantics of these interactions. .
Semantics
Semantics

Please select the best answer.
  A. The container does not need to check the security when BeanD is a client to BeanB.
  B. BeanD, as a client, can call the methods of the bean directly without going through the container.
  C. The semantics are the same for both interactions.
  D. BeanD, as a client, does not need to look up the name and download the stub for BeanB from JNDI.

3. What are valid activities of the container when a request arrives for a method of a bean instance?
Please select all the correct answers.
  A. Acknowledge receipt of the request to the client
  B. Start a transaction
  C. Check security for the client
  D. Discard the request.
  E. Directly and immediately pass the request to the bean's methods.