1. Where are the EJB classes utilized by applications retained?
2. The _______ is the most common exception class.
3. The _______ file is an XML file used to describe the properties of a bean.
4. _______ is not a tag used in an XML bean archive to define a primitive type.
5. True or False? Enterprise Java 2.0 specification introduces the concept of local beans.
6. EJB applications are deployed on a ____ compliant Application Server.
7. What is RMI-IIOP?
8. What format is the deployment descriptor document in?
9. EJB stands for ________.
10. What file format are all of the descriptor files in?
11. EJB is a framework for _____.
12. If you wanted to control the WebLogic Server EJB’s configuration, what is one of the files you would use?
13. What is another name for a deployment descriptor?
14. Which of the following is one of WebLogic Server's caching abilities?
15. What is concurrency control?
16. What is CMC?
17. In passivation, the opposite method from ejbPassivate() is _______.
18. Does WebLogic server support multiple methods?
19. True or False? A session bean can only be stateless.
20. Which of the following contains the EJB container that provides the services for the EJB component?
21. What is lock annotation used for?
22. What are ACID transactions responsible for?
23. When injection is not available, what is the alternative?
24. What does it mean when business objects have a state?
25. What bean represents real-world objects?
26. A class is serializable if a class's inheritance hierarchy implements _________.
27. A bean _______ is the code responsible for managing beans and the various interfaces.
28. Do clients of EJB instantiate beans directly?
29. _____ bean stores data for a particular user for a single session.
30. What is the EJB container responsible for assigning?
31. What is asynchronous pattern?
32. True or False? EJB is a client-side model that encapsulates the business logic of an application.
33. Beans are distributed as ____ files.
34. ______ beans represent persistent data storage.
35. How are stateless session beans different than stateful session beans?
36. What is the javax.ejb.spi package used for?
37. True or False? The properties of a bean affect its appearance or internal state.
38. True or False? A bean class can fire off any type of event except custom events.
39. A ____ tag is used to represent an instance of a class in an XML bean archive.
40. _____ is NOT a method of the EntityBean Interface.
41. How are EJB's two interfaces referred to?
42. What has replaced the deployment descriptor in the newest version of EJB, 3.0?
43. What kind of programming does Java Message Service provide for EJB?
44. What happens if two calling clients attempt to access a single bean?
45. What is an example of a stateful session bean process?
46. Object _____ means converting an object into a data stream and writing it to storage.
47. What three files are used to control WebLogic Server EJB?
48. _______ class does not support serialization.
49. _______ provides a means for modifying the appearance and behavior of a bean within an application builder so it meets your specific needs.
50. Which of the following is a JNDI scope?
51. True or False? For the class to be serializable, you must implement the Serializable interface in your class even if it is already implemented in a superclass.
52. Can underlying table schemas be changed automatically by your EJB container?
53. What is responsible for the user interface logic on a client machine?
54. _____ is not an EJB interface.
55. True or False? A boolean property in a bean class must have a public get method.
56. True or False? Any public method that is not part of a property definition is a bean method.
57. What two security mechanisms does EJB primarily use?
58. When is it ideal to use a singleton session bean?
59. If a bean is handling transactions via JTA API, what is happening?
60. A ______ class for a bean changes how a bean appears in the builder tool by telling which properties should be listed first or which should be hidden.
61. A ______ property consults listeners before making a change and any one of the listeners may veto the change.
62. True or False? Client code can access local beans.
63. Use the ______ interface when you need complete control over your bean's serialization.
64. True or False? Enterprise Java bean is a form of Java bean.
65. ______ is an advantage of a session bean over an entity bean.
66. Are class methods declared by the Home interface tied to a specific instance?
67. When you create a combination of read-only and read-write EJBs, what pattern are you creating?
68. A ______ property notifies listeners when its value changes.
69. True or False? When an Application Exception occurs, the ejb container intercepts the exception, rolls back the transaction, and starts the clean up tasks.
70. The ______ is an abstract representation of the container system to access a bean through methods that manage actions of the bean.
71. What happens if concurrent access is attempted on a single bean?
72. What is EJB's transaction processing responsible for?
73. _______ is not true of customizers.
74. True or False? EJB technology allows users to isolate their business logic away from the data layer by storing with the presentation layer.
75. The listener type of an event must be a descendent of _______.
76. How many clients can access a stateless session bean?
77. _____ is a model that enables beans to be saved in an XML format.
78. Are CMTs active, or passive?
79. EJB's remote interfaces are split into what two groups?
80. ______ bean supports asynchronous execution.
81. Which of the following statements is correct with regard to the method ejbSelect()?
82. Which of the following statements are correct with regard to EJB QL?
83. Which of the following must be implemented by a JMS message-driven bean?
84. A pre-cached instance is used to load state information on creation of an EJB.
85. We are saving a handle to an EJBObject named 'bookEJBObject' for an online book shop:1. javax.ejb.Handle bookHandle = _____________;2. 3. ObjectOutputStream stream = 4. new ObjectOutputStream(new FileOutputStream(fileName));5.6. stream.writeObject(bookHandle);7. stream.close();Which of the following methods should be filled in the blank?
86. Which of the following statements is incorrect with regard to the process of Instance Pooling in EJB?
87. The principal finder method that must be implemented by every entity bean class is:
88. A client wants to access Enterprise Java Bean for some processing. The first step will be looking up the class that implements its home interface. Which of the following should be used for the purpose?
89. An online medical shop uses Container Managed persistent beans for its operations. An OrderBean uses a query to list all the orders where payable amount is more than $800. The XML query tag in the deployment descriptor is as follows:1. <query>2. <query-method>3. <method-name>findBigOrders</method-name>4. <method-params></method-params>5. </query-method>6.7. </query>If the name of the table is 'Order' and total amount payable is in the column named 'amount,' which of the following queries can be placed in line 6?
90. The method ejbCreate() allows session beans to perform initializations. Which of the following methods should be called by the container before ejbCreate()?
91. What will happen to the running session beans if the EJB container crashes or restarts?
92. The methods declared in Session Bean interface are known as Callback (methods).
93. Which of the following is a name of the design pattern not associated with EJB?
94. The PrimaryKey class is used to provide each entity bean with a ____________:
95. You define an enterprise bean as follows: Public class CalcSessionBean implements javax.ejb.SessionBean Which of the following method definitions is not mandatory?
96. Which of the following is a language in which IDL compiler of CORBA generates proxies and skeletons?
97. The interface that must be implemented by a stateless session bean is javax.ejb.SessionBean.
98. What is the restriction that EJB specification imposes on CMP fields?
99. By interoperating via IIOP, an EJB can directly access:
100. How do Enterprise Java Beans access the database?
101. An online shop employs a stateless session bean (named 'Eshop') to process the requests. 'Eshop' uses a declarative transaction management system. The following code is from the xml deployment descriptor file of the bean: 1. <ejb-jar>2. <enterprise-beans>3. <session>4. <ejb-name>Eshop</ejb-name>5. <home>com.solution.EshopHome</home>6. <remote>com.solution.Eshop</remote>7. <local-home>com.solution.EshopLocalHome</local-home>8. <local>com.solution.EshopLocal</local>9. <ejb-class>com.solution.EshopBean</ejb-class>10.11.12. </session>13. </enterprise-beans>14. </ejb-jar>The session and transaction attributes are to be coded in the lines numbered 10 and 11. Which of the following options should be used to make the bean work as expected?
102. Which of the following statements is correct with regard to 'poison' message?
103. A heavy tool manufacturing company manages its business and production by using enterprise beans. A session bean named 'Status' is used to get the production status for the day. The following code gets the context:Context initialContext = new InitialContext();The bean provides a local client view. For the local home interface named 'StatusHome.' What should be the lookup?
104. Which of the following services does an EJB Server/Container provides to EJB?
105. Which of the following methods should be invoked by the container to get a bean back to its working state?
106. The transaction attribute of a bean is set to 'TX_REQUIRES_NEW.' What do you infer about its behavior?
107. Which of the following services does EJB container provide to a bean?
108. Which of the following statements is correct with regard to JavaBeans and Enterprise JavaBeans?
109. You don't have any database recovery/backup system in place. Which of the following statements is true with regard to committed and uncommitted data of your entity bean?
110. Which of the following is not implemented by a stateless session bean?
111. Which of the following statements is not correct with regard to relationships in EJB?
112. Which of the following constitute the enhancements made to EJB 2.0?
113. The EJB specification defines six distinct roles in the application development and deployment life cycle. Which of the following roles is not mentioned in it?
114. You are working with EJB2.0. You have to retrieve a previously saved handle to an EJBObject named 'bookEJBObject.' In order to restart the processing for that particular request, you need to get the remote interface. The following code has been written for the same:1. ObjectInputStream stream = 2. new ObjectInputStream(new FileInputStream(fileName));3.4. Handle bookHandle = (Handle) stream.readObject();5.6. BookRemoteInterface bookEjbObject = (BookRemoteInterface) XX() ;Which of the following should substitute Method XX() of line 6?
115. Both RMI and CORBA define messaging protocols called:
116. Database connection pooling is beneficial because:
117. To disable the Passivaton process, set the EJBPassivationTimeout() variable to zero.
118. SessionSynchronization Interface must be implemented to reset the instance variables.
119. One of the methods of your entity bean retrieves the names of all the patients admitted in a particular ward of a hospital. Using a connection named 'con', you want to execute the following query: //secId is the parameter received by the methodString query = "SELECT admissionId, patientFirstName, patientLastName FROM ADMISSION WHERE sectionId=" + secId;Which of the following options will help you execute the query?
120. What are the three classes that a Session EJB class must provide?
121. Which of the following statements is correct with regard to entity, session, and message-driven beans?
122. Which of the following transaction modes are supported by Enterprise Java Beans?
123. Which of the following statements is not correct with regard to Passivation of beans?
124. The following method signature is found in an implemented entity bean named 'CustomerBean.' 'CustomerPK' is a class representing the primary key.public CustomerPK ejbFindByPrimaryKey(CustomerPK key) throws FinderExceptionBy context look up, a client gets the reference to the home object of the above bean, named 'custHome'. It gets the 'CustomerPK' class named 'PK' by a different method. The name of EJBObject is 'Customer', which represents a customer. Which of the following options will you select to invoke the above mentioned method in the client?
125. Which of the following statements is not correct for an Enterprise Java Bean?