Java EE: EJB and Servlet Technologies

Questions about Enterprise JavaBeans (EJB) transaction management, pooling, and Java Servlet API

5 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which of the following is employed to combat overhead costs associated with remote executions?

  1. Optimised method invocations
  2. Preached instances
  3. EJB server
  4. EJB container
  5. Application assembler
Question 2 Multiple Choice (Single Answer)

Which of the following means that the container shares instances of EJB beans among multiple clients?

  1. Database connection pooling
  2. Instance pooling
  3. Instance passivation
  4. Preached instance
  5. EJB container
Question 3 Multiple Choice (Single Answer)

In which mode of transaction management does the bean requires that the client must have a transaction open before it attempts to use the bean?

  1. TX_MANDATORY
  2. TX_BEAN_MANAGED
  3. TX_SUPPORT
  4. RemoteInterface
  5. RemoteException
Question 4 Multiple Choice (Single Answer)

Which of the following HttpServletRequest methods returns the value of the specified request header as an numeric form?

  1. get header(Java.lang.String name)
  2. get headers(Java.lang.String name)
  3. getIntHeader(java.lang.String name)
  4. init()
  5. service()
Question 5 Multiple Choice (Single Answer)

In which transaction does the bean runs the client's transaction context, if it has a transaction open when it invoked the beans methods?

  1. TX_REQUIRES_NEW
  2. TX_REQUIRED
  3. TX_BEAN_MANAGED
  4. RemoteInterface
  5. Java IDL