Assume an EJB application is comprised of the following EJB fragment:
You have been asked to convert the type of InventoryReportBean into a singleton session bean.
How would you achieve this tas8k?
Exhibit C:
A.
Keep InventoryReportBean as it is, modifying the internal structure to function as a singleton
B.
Change the @Stateless annotation of InventoryReportBean to @Singleton
C.
Create an ejb-jar.xml file, and override the annotation configuration information asin exhibit C
above.
D.
Create an ejb-jar.xml file, and override the annotation configuration information asin exhibit D
above.
Explanation:
Note the line with <override-type>
B
That does not exist in EJB JSR 318 specification (nor in the web except here)
B. can’t be overwrited structural information.
B.
overide-type tag doesnt exist in the ejb-jar.xml schema
B
B