Professional Documents
Culture Documents
hung1708@gmail.com
Transactional components
Server-side components
A web server
An application server
An EJB container
A database server
3. What do enterprise beans use to communicate with the EJB container to get runtime context
information ?
4. Through what interface does an application create, find, and remove enterprise beans ?
java.rmi.Remote
javax.ejb.EJBHome
javax.ejb.EJBObject
javax.ejb.EntityBean
javax.ejb.EnterpriseBean
java.rmi.Remote
javax.ejb.SessionBean
javax.ejb.EntityBean
6. What type of enterprise bean is used to embody application processing state information ?
javax.ejb.EnterpriseBean
javax.rmi.Remote
javax.ejb.SessionBean
javax.ejb.EntityBean
7. What interface must the enterprise bean implement so that an application can invoke its
operations ?
javax.ejb.EntityBean
javax.ejb.EJBHome
javax.rmi.Remote
javax.ejb.EJBObject
After the CMP bean's data has been committed to the underlying persistent datastore
A BMP bean can implement persistence to custom datastores such as legacy systems
A BMP bean is responsible for managing its own persistence to a persistent datastore
An XML file format used by the container to learn about the attributes of a bean, such as
transactional characteristics and access control
A method for transporting enterprise beans back and forth between systems
An XML file used by enterprise bean clients to learn about the attributes of a bean, such as
access control and transactional characteristics.
There must be one per client as long as the client is executing the business logic.
12. What happens when you pass a serialized object as an argument or return value that
doesn't exist either in the Client or the Server ?
none of these
13. When you pass a Remote object to or from a remote method, what is really passed ?
None of these
14. When a bean moves from the "does not exist" to the "method ready" status, in which order
do the events take place ?
construction,ejbCreate(),setSessionContext()
construction,setSessionContext(),ejbCreate()
setSessionContext() only take place.
None of these.
15. What is true for the isIdentical() method of the EJBObject interface for stateless session
beans ?
Returns true if the stubs refferring to two different Remote EJB objects.
None of these.
can be shared between multiple clients as long as the entity being shared is same.
None of these.
18. Is an entity bean allowed to return objects that don't implement the component interface ?
Yes.
No.
Just nothing.
None of these.
By reference.
By object copy.
Answers
1. D
2. C
3. A
4. B
5. D
6. C
7. D
8. B
9. D
10. A
11. D
12. C
13. D
14. B
15. A
16. B
17. C
18. D
19. C
20. D