Java Enterprise Web Technologies
Covers EJB transaction management and Servlet APIs for Java web development
Questions
Question 1 Multiple Choice (Single Answer)
Which transaction means that if the client has a transaction in progress when it invokes the beans methods, the clients transaction is used?
- TX_SUPPORTS
- TX_BEAN_MANAGED
- TX_MANDATORY
- Enterprise bean provider
- EJB server
Question 2 Multiple Choice (Single Answer)
Which method returns the name of the Servlet's initialization attributes as an enumeration of String objects?
- getInitParameter(String name)
- getInitParameterNames()
- addHeader(java.lang.String name, java.lang.String value)
- contains header(java.lang.String name)
- setHeader(java.lang.String name, java.lang.String value)
Question 3 Multiple Choice (Single Answer)
Which of the following returns the value of the specified request header as a long value that represents a Date object?
- addDateHeader(java.lang.String name, long date)
- setDateHeader(java.lang.String name, long date)
- getDateHeader(java.lang.String name)
- getHeaderName()
- getHeader(java.lang.String name)
Question 4 Multiple Choice (Single Answer)
Which method of servlet is invoked once per a request and is responsible for generating the response to that request?
- service()
- init()
- destroy()
- GET
- POST
Question 5 Multiple Choice (Single Answer)
In which of the following does the container temporary suspends a transaction, until the bean's transaction finishes, if it is under way?
- TX_REQUIRED
- TX_REQUIRES_NEW
- TX_BEAN_MANAGED
- Instance passivation
- Application assembler