Win a copy of Spring Boot in Practice this week in the Spring 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Coffee Cram questions 3 and 5 in entity bean intro

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
He All,

In HFE chapter 5 (Entity Bean intro):
Question: Which are ways in which a client can get a reference to an existing entity object's local (remote) component interface?
Answer D is: "Receive the reference as a parameter in a method call".
I did not understand why the answer D is true in questions 3 and 5.

Thanks in advance.
 
Ranch Hand
Posts: 161
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can get a hold of a component interface via the following ways.
1. Invoking create(), findBy,... from the home interface.
2. Using handle (only for remote interface)
3. Parameterizing a component interface. Just like regular java program.

Bean A{
process(BeanBInterface BeanB){
BeanB.doSomeThing();
}


}
reply
    Bookmark Topic Watch Topic
  • New Topic