What are the purposes of the EJB reference deployment descriptor elements? [Check all correct answers] 1. Allows the bean provider to locate the home interface of other enterprise beans without knowing where the object resides in the enterprise system. 2. Allows the application assembler and deployer to discover all references used by an enterprise bean. 3. Allows the bean provider to reference configurable data that can be changed by a deployer without modifying the enterprise bean source code. 4. Allows the application assembler to link an EJB reference declared in one enterprise bean to another enterprise bean contained in the same J2EE application unit. 5. Allows JMS destinations to be defined so that they can be bound to the target operational environment by the deployer.
The given answers are 1,2,4
3 and 5 are wrong and given the following explanation Answer 3 is incorrect because an environment entry should be used to reference configurable data. Answer 5 is incorrect. The bean provider should use the resource environment reference deployment descriptor element when referencing an administered object associated with resources such as JMS destinations.
3. Allows the bean provider to reference configurable data that can be changed by a deployer without modifying the enterprise bean source code. ----> ejb-ref is for relating another ejb in the application to the concerned ejb. you use env-entry to do those costumizing; you can give values to these and the whole application will be a different animal.
5. Allows JMS destinations to be defined so that they can be bound to the target operational environment by the deployer. ----> ejb-ref is between ejbs, and not concerned with the operational issues. ejb-ref is done usually by assembler, not deployer.
I have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
a bit of art, as a gift, the permaculture playing cards