• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

mock exam - deployement descriptor

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Plz. see the mock exam

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.

I am not getting y 3 and 5 are wrong...
 
Ranch Hand
Posts: 2108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic