Win a copy of OCP Oracle Certified Professional Java SE 11 Developer Practice Tests this week in the OCP forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

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.
 
He got surgery to replace his foot with a pig. He said it was because of this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic