Академический Документы
Профессиональный Документы
Культура Документы
Edition
hung1708@gmail.com
1. Both session and entity beans can implement local and remote client views, and
generally the same considerations apply. However, an entity bean must implement a
local client view in what situation?
C. When the entity bean is located in a different JVM from the client.
When the application uses a session bean as a facade to a set of entity
D. beans.
2. The EJB 2.1 architecture includes an SQL-like query language, EJB Query Language
(EJB QL), that is portable across EJB containers. This language can be used to express
queries for
A. Message-driven beans
A. a javax.ejb.SessionBean interface
B. a javax.ebj.MessageDrivenBean interface
D. a javax.ebj.EJBHome interface
5. A message-driven bean developed for a JMS messaging system puts its business
processing logic within which method:
A. setSessionContext method
B. onMessage method
C. ejbRemove method
D. setMessageDrivenContext method
E. a user-defined method
A. NotSupported
B. Mandatory
C. Required
D. Supports
7. The EJB timer service is used for timing notifications. It can be used with
C. message-driven beans
D. B and C
E. A and C
8. EJB Timer objects are stateless objects, with the same characteristics as stateless
session beans.
A. True
B. False
B. At a specified time
C. On a recurring basis
10. The J2EE 1.4 platform includes a set of Web services technologies for developing
Web services applications. Developers can use the following technologies to write a
Web service Java interface or service endpoint interface:
Java API for XML Processing (JAX-P) and Java API for XML Binding
A. (JAX-B)
C. Java API for XML-based RPC (JAX-RPC) and enterprise bean components
11. To develop a Java interface for a Web service-the service endpoint interface-you must
start with the WSDL (Web Services Description Language) document for the service.
A. True
B. False
12. Which type of enterprise bean is particularly well suited for developing a JAX-RPC
service endpoint interface for a Web service?
A. A messaged-driven bean
B. An entity bean
D. A Timer object
13. When developing an enterprise bean as a JAX-RPC service endpoint interface for a
Web service, you must adhere to the following rule:
The bean must not extend java.rmi.Remote nor should its methods throw
A. java.rmi.RemoteException
15. For a new Web service developed using enterprise beans, you must package its
components into an ejb-jar file. Which of the following are not packaged into the ejb-
jar file:
A. All classes referenced from the bean class and the interface
ANSWERS
1B
2C
3D
4B
5B
6C
7D
8B
9D
10C
11B
12C
13C
14A
15D