• 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

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();
}


}
 
They weren't very bright, but they were very, very big. Ad contrast:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic