• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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