Java EE: EJB and Servlet Technologies
Questions about Enterprise JavaBeans (EJB) transaction management, pooling, and Java Servlet API
Questions
Question 1 Multiple Choice (Single Answer)
Which of the following is employed to combat overhead costs associated with remote executions?
- Optimised method invocations
- Preached instances
- EJB server
- EJB container
- Application assembler
Question 2 Multiple Choice (Single Answer)
Which of the following means that the container shares instances of EJB beans among multiple clients?
- Database connection pooling
- Instance pooling
- Instance passivation
- Preached instance
- 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?
- TX_MANDATORY
- TX_BEAN_MANAGED
- TX_SUPPORT
- RemoteInterface
- 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?
- get header(Java.lang.String name)
- get headers(Java.lang.String name)
- getIntHeader(java.lang.String name)
- init()
- 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?
- TX_REQUIRES_NEW
- TX_REQUIRED
- TX_BEAN_MANAGED
- RemoteInterface
- Java IDL