Quiz

1:Which of the following are true about a stateful session bean:
  1. An instance is created for each client connected to the server.

  2. It can have a create() method that accepts arguments.

  3. It has a state or member fields that can be initialized and changed by the client with each business method invocation.

  4. It can never be passivated or activated by the container.

A1: A, B, and C
2:Which of the following are true when a stateful session bean is passivated by the container:
  1. The bean instance is stored for later reactivation.

  2. The bean instance is evicted from the application server memory.

  3. The bean instance is created and becomes ready.

  4. The bean state is serialized except for its transient member fields.

A2: A, B, and D
3:A stateful session bean is best used in which situation?
  1. More than one caller is concurrently connected to use the service.

  2. Persistence is a primary requirement.

  3. Instance is required to be thread-safe.

  4. You want to manage client state in a transactional and secure environment.

A3: C
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.223.171.51