Quiz

1:Which of the following Enterprise JavaBeans processes messages asynchronously?
  1. Stateless session bean

  2. Stateful session bean

  3. Entity bean

  4. Message-driven bean

A1: D
2:Which one of the following can access the local client view of an Enterprise JavaBean?
  1. Servlet within the same JVM as the Enterprise JavaBean

  2. Servlet in a different JVM than the Enterprise JavaBean

  3. A non-EJB in a different JVM than the Enterprise JavaBean

  4. An EJB in a different JVM than the Enterprise JavaBean

A2: A
3:Which one of the following isn't a programming restriction for an Enterprise JavaBean?
  1. Read/write static fields

  2. Start a new thread

  3. Open a socket client

  4. Listen on a socket

A3: C

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.